GoScrobble/web/node_modules/memoize-one/dist/memoize-one.d.ts

4 lines
260 B
TypeScript
Raw Normal View History

2022-04-25 02:47:15 +00:00
export declare type EqualityFn = (newArgs: any[], lastArgs: any[]) => boolean;
declare function memoizeOne<ResultFn extends (this: any, ...newArgs: any[]) => ReturnType<ResultFn>>(resultFn: ResultFn, isEqual?: EqualityFn): ResultFn;
export default memoizeOne;