@formatjs/fast-memoize 3.0.3 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +0 -6
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Main
|
|
3
|
-
//
|
|
4
1
|
type Func = (...args: any[]) => any;
|
|
5
2
|
export interface Cache<
|
|
6
3
|
K,
|
|
@@ -36,9 +33,6 @@ export interface MemoizeFunc<F extends Func> {
|
|
|
36
33
|
}
|
|
37
34
|
export declare function memoize<F extends Func>(fn: F, options?: Options<F>): F;
|
|
38
35
|
export type StrategyFn = <F extends Func>(this: unknown, fn: F, cache: DefaultCache<string, ReturnType<F>>, serializer: Serializer, arg: any) => any;
|
|
39
|
-
//
|
|
40
|
-
// API
|
|
41
|
-
//
|
|
42
36
|
export interface Strategies<F extends Func> {
|
|
43
37
|
variadic: MemoizeFunc<F>;
|
|
44
38
|
monadic: MemoizeFunc<F>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formatjs/fast-memoize",
|
|
3
3
|
"description": "fork of fast-memoize and support esm",
|
|
4
|
-
"version": "3.0
|
|
4
|
+
"version": "3.1.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Long Ho <holevietlong@gmail.com>",
|
|
7
7
|
"type": "module",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
".": "./index.js"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"tslib": "^2.8.
|
|
14
|
+
"tslib": "^2.8.1"
|
|
15
15
|
},
|
|
16
16
|
"bugs": "https://github.com/formatjs/formatjs/issues",
|
|
17
17
|
"homepage": "https://github.com/formatjs/formatjs#readme",
|