Installation
npm install --save @types/memoizee
Summary
This package contains type definitions for memoizee (https://github.com/medikoo/memoizee).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/memoizee.
declare namespace memoizee {
interface Options<F extends (...args: any[]) => any> {
length?: number | false | undefined;
maxAge?: number | undefined;
max?: number | undefined;
preFetch?: number | true | undefined;
promise?: boolean | "then" | "done" | "done:finally" | undefined;
dispose?(value: any): void;
async?: boolean | undefined;
primitive?: boolean | undefined;
normalizer?(args: Parameters<F>): string;
resolvers?: Array<(arg: any) => any> | undefined;
profileName?: string;
}
interface Memoized<F> {
delete: F;
clear: F & (() => void);
}
}
declare function memoizee<F extends (...args: any[]) => any>(f: F, options?: memoizee.Options<F>): F & memoizee.Memoized<F>;
export = memoizee;
Additional Details
- Last updated: Fri, 06 May 2022 19:01:33 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Juan Picado, and Patrick Muff.