UNPKG

590 BTypeScriptView Raw
1import type { EqualityFn } from './types';
2export declare const defaultEqualityCheck: EqualityFn;
3export declare function createCacheKeyComparator(equalityCheck: EqualityFn): (prev: unknown[] | IArguments | null, next: unknown[] | IArguments | null) => boolean;
4export interface DefaultMemoizeOptions {
5 equalityCheck?: EqualityFn;
6 resultEqualityCheck?: EqualityFn;
7 maxSize?: number;
8}
9export declare function defaultMemoize<F extends (...args: any[]) => any>(func: F, equalityCheckOrOptions?: EqualityFn | DefaultMemoizeOptions): F & {
10 clearCache: () => void;
11};