Naughty Platypus Memorabilia

    @types/memoizee
    TypeScript icon, indicating that this package has built-in type declarations

    0.4.6 • Public • Published

    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.

    index.d.ts

    // Type definitions for memoizee 0.4
    // Project: https://github.com/medikoo/memoizee
    // Definitions by: Juan Picado <https://github.com/juanpicado>
    //                 Patrick Muff <https://github.com/dislick>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // Minimum TypeScript Version: 3.1
    
    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 | undefined;
        dispose?(value: any): void;
        async?: boolean | undefined;
        primitive?: boolean | undefined;
        normalizer?(args: Parameters<F>): string;
        resolvers?: Array<(arg: any) => any> | undefined;
      }
    
      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: Tue, 06 Jul 2021 22:03:03 GMT
    • Dependencies: none
    • Global values: none

    Credits

    These definitions were written by Juan Picado, and Patrick Muff.

    Keywords

    none

    Install

    npm i @types/memoizee

    DownloadsWeekly Downloads

    103,657

    Version

    0.4.6

    License

    MIT

    Unpacked Size

    4.76 kB

    Total Files

    4

    Last publish

    Collaborators

    • types