智慧水务管理系统 - 精河县供水工程综合管理平台

memoize-one.d.ts 512B

1234567
  1. export declare type EqualityFn<TFunc extends (...args: any[]) => any> = (newArgs: Parameters<TFunc>, lastArgs: Parameters<TFunc>) => boolean;
  2. export declare type MemoizedFn<TFunc extends (this: any, ...args: any[]) => any> = {
  3. clear: () => void;
  4. (this: ThisParameterType<TFunc>, ...args: Parameters<TFunc>): ReturnType<TFunc>;
  5. };
  6. declare function memoizeOne<TFunc extends (this: any, ...newArgs: any[]) => any>(resultFn: TFunc, isEqual?: EqualityFn<TFunc>): MemoizedFn<TFunc>;
  7. export default memoizeOne;