fast-typescript-memoize
Version:
Fast memoization decorator and other helpers with 1st class support for Promises.
7 lines • 346 B
TypeScript
/**
* Saves the value returned by `func()` in a hidden property `tag` of `obj`
* object, so next time memoize0() is called, that value will be returned, and
* `func` won't be called.
*/
export declare function memoize0<TTag extends symbol, TResult>(obj: object, tag: TTag, func: () => TResult): TResult;
//# sourceMappingURL=memoize0.d.ts.map