@naturalcycles/nodejs-lib 12.67.0 → 12.67.1
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.
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MemoCache } from '@naturalcycles/js-lib';
|
|
2
2
|
import LRUCache = require('lru-cache');
|
|
3
|
-
export
|
|
4
|
-
}
|
|
3
|
+
export declare type LRUMemoCacheOptions<KEY, VALUE> = Partial<LRUCache.Options<KEY, VALUE>>;
|
|
5
4
|
/**
|
|
6
5
|
* @example
|
|
7
6
|
* Use it like this:
|
package/package.json
CHANGED
package/src/util/lruMemoCache.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { MemoCache } from '@naturalcycles/js-lib'
|
|
|
2
2
|
import LRUCache = require('lru-cache')
|
|
3
3
|
|
|
4
4
|
// Partial, to be able to provide default `max`
|
|
5
|
-
export
|
|
5
|
+
export type LRUMemoCacheOptions<KEY, VALUE> = Partial<LRUCache.Options<KEY, VALUE>>
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @example
|