RecipesChapter 4: Generics

Using ThisType to Define this in Objects

Recipe 4.4 from The TypeScript Cookbook

declare function create<Data, Computed extends FnObj, Methods>(
  options: Options<Data, Computed, Methods>
): any;
Open in TypeScript Playground →