@devexperts/utils
Advanced tools
Comparing version 0.15.0 to 0.15.1
@@ -24,2 +24,14 @@ /** | ||
}; | ||
export declare function memoize<A, B, C, D, E>(this: any, fn: (a: A, b: B, c: C, d: D) => E): { | ||
(a: A, b: B, c: C, d: D): E; | ||
[key: string]: (a: A, b: B, c: C, d: D) => E; | ||
}; | ||
export declare function memoize<A, B, C, D, E, F>(this: any, fn: (a: A, b: B, c: C, d: D, e: E) => F): { | ||
(a: A, b: B, c: C, d: D, e: E): F; | ||
[key: string]: (a: A, b: B, c: C, d: D, e: E) => F; | ||
}; | ||
export declare function memoize<A, B, C, D, E, F, G>(this: any, fn: (a: A, b: B, c: C, d: D, e: E, f: F) => G): { | ||
(a: A, b: B, c: C, d: D, e: E, f: F): G; | ||
[key: string]: (a: A, b: B, c: C, d: D, e: E, f: F) => G; | ||
}; | ||
export default memoize; |
@@ -33,3 +33,3 @@ "use strict"; | ||
var argsAreValid = args.every(function (arg) { | ||
return typeof arg === 'number' || typeof arg === 'string'; | ||
return typeof arg === 'number' || typeof arg === 'string' || typeof arg === 'boolean'; | ||
}); | ||
@@ -36,0 +36,0 @@ if (!argsAreValid) { |
{ | ||
"name": "@devexperts/utils", | ||
"version": "0.15.0", | ||
"version": "0.15.1", | ||
"description": "", | ||
"main": "lib/index.js", | ||
"main": "dist", | ||
"module": "dist", | ||
"scripts": { | ||
@@ -35,5 +36,5 @@ "test": "echo \"Error: no test specified\" && exit 1", | ||
"devDependencies": { | ||
"@devexperts/tools": "^0.15.0", | ||
"@devexperts/tools": "^0.15.1", | ||
"fp-ts": "^1.2.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
78572
1641