UNPKG

556 BTypeScriptView Raw
1interface MemoizeArgs {
2 expiring?: number;
3 hashFunction?: boolean | ((...args: any[]) => any);
4 tags?: string[];
5}
6export declare function Memoize(args?: MemoizeArgs | MemoizeArgs['hashFunction']): (target: Object, propertyKey: string, descriptor: TypedPropertyDescriptor<any>) => void;
7export declare function MemoizeExpiring(expiring: number, hashFunction?: MemoizeArgs['hashFunction']): (target: Object, propertyKey: string, descriptor: TypedPropertyDescriptor<any>) => void;
8export declare function clear(tags: string[]): number;
9export {};