I have a TypeScript class that manages a cache of objects. It has a get method that takes an item’s ID, and an optional boolean for whether or not an API should be called to fetch the object if it isn’t already cached. If the boolean parameter is false or undefined, the method should return CachedObject | undefined. Otherwise, it