4 lines
260 B
TypeScript
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;
|