@types/memoizee
Advanced tools
Comparing version 0.4.5 to 0.4.6
@@ -10,12 +10,12 @@ // Type definitions for memoizee 0.4 | ||
interface Options<F extends (...args: any[]) => any> { | ||
length?: number | false; | ||
maxAge?: number; | ||
max?: number; | ||
preFetch?: number | true; | ||
promise?: boolean; | ||
length?: number | false | undefined; | ||
maxAge?: number | undefined; | ||
max?: number | undefined; | ||
preFetch?: number | true | undefined; | ||
promise?: boolean | undefined; | ||
dispose?(value: any): void; | ||
async?: boolean; | ||
primitive?: boolean; | ||
async?: boolean | undefined; | ||
primitive?: boolean | undefined; | ||
normalizer?(args: Parameters<F>): string; | ||
resolvers?: Array<(arg: any) => any>; | ||
resolvers?: Array<(arg: any) => any> | undefined; | ||
} | ||
@@ -22,0 +22,0 @@ |
{ | ||
"name": "@types/memoizee", | ||
"version": "0.4.5", | ||
"version": "0.4.6", | ||
"description": "TypeScript definitions for memoizee", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/memoizee", | ||
"license": "MIT", | ||
@@ -27,4 +28,4 @@ "contributors": [ | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "425524b92661ecda52a9fcba58244c353bd02a781ae63e2ab02636542b608ca4", | ||
"typeScriptVersion": "3.2" | ||
"typesPublisherContentHash": "c1ff85184bcb9f7ebccb91417fb726494540c1407cee8cf593d6287254336bf0", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -9,5 +9,39 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/memoizee. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/memoizee/index.d.ts) | ||
````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: Wed, 28 Oct 2020 18:55:33 GMT | ||
* Last updated: Tue, 06 Jul 2021 22:03:03 GMT | ||
* Dependencies: none | ||
@@ -14,0 +48,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4761
1
51