0.4.11 • Published 6 months ago

@types/memoizee v0.4.11

Weekly downloads
65,662
License
MIT
Repository
github
Last release
6 months ago

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 | "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.

0.4.10

6 months ago

0.4.9

7 months ago

0.4.11

6 months ago

0.4.8

2 years ago

0.4.7

2 years ago

0.4.6

3 years ago

0.4.5

3 years ago

0.4.4

4 years ago

0.4.3

5 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago