amis-rpc-design/node_modules/memoize-one/dist/memoize-one.d.ts
2023-10-07 19:42:30 +08:00

4 lines
260 B
TypeScript

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;