DefinitelyTyped/types/mem/index.d.ts
Andy b6c343f2b3 Apply new lint rules to yet more packages (#15548)
* Apply new lint rules to yet more packages

* Fix leaflet lint
2017-03-31 11:01:26 -07:00

18 lines
472 B
TypeScript

// Type definitions for mem 1.1
// Project: https://github.com/sindresorhus/mem
// Definitions by: Sam Verschueren <https://github.com/SamVerschueren>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface Options {
maxAge?: number;
cacheKey?(...args: any[]): string;
cache?: any;
}
declare const mem: {
<F extends (...args: any[]) => any>(fn: F, options?: Options): F;
clear<F extends (...args: any[]) => any>(fn: F): void;
};
export = mem;