index.d.ts 381 B

12345678910111213
  1. // Type definitions for memoizerific 1.11.2
  2. // Project: https://github.com/thinkloop/memoizerific
  3. // Definitions by: https://github.com/3af
  4. // inspired by https://stackoverflow.com/a/43382807
  5. declare module "memoizerific" {
  6. export = memoizerific;
  7. }
  8. type memoize = <R, T extends (...args: any[]) => R>(fn: T) => T;
  9. declare function memoizerific(cacheSize: number): memoize;