Closed Jonasdoubleyou closed 2 years ago
Maybe we are able to generalize:
interface DataSource { getDrinks(): Promise<IDrink[]>; getIngredient(id: string): IIngredient; getAlcoholOf(id: string): number; }
Then we could move the caching logic on top of that.
Maybe we are able to generalize:
Then we could move the caching logic on top of that.