UNPKG

260 BTypeScriptView Raw
1export declare type EqualityFn = (newArgs: any[], lastArgs: any[]) => boolean;
2declare function memoizeOne<ResultFn extends (this: any, ...newArgs: any[]) => ReturnType<ResultFn>>(resultFn: ResultFn, isEqual?: EqualityFn): ResultFn;
3export default memoizeOne;