lru-cache
Advanced tools
Comparing version 7.18.0 to 7.18.1
@@ -115,3 +115,3 @@ // Project: https://github.com/isaacs/node-lru-cache | ||
*/ | ||
public get(key: K, options?: LRUCache.GetOptions): V | undefined | ||
public get(key: K, options?: LRUCache.GetOptions<V>): V | undefined | ||
@@ -133,3 +133,3 @@ /** | ||
*/ | ||
public has(key: K, options?: LRUCache.HasOptions): boolean | ||
public has(key: K, options?: LRUCache.HasOptions<V>): boolean | ||
@@ -163,3 +163,3 @@ /** | ||
) => boolean | undefined | void, | ||
options?: LRUCache.GetOptions | ||
options?: LRUCache.GetOptions<V> | ||
): V | undefined | ||
@@ -662,3 +662,3 @@ | ||
*/ | ||
interface HasOptions { | ||
interface HasOptions<V> { | ||
updateAgeOnHas?: boolean | ||
@@ -672,3 +672,3 @@ status: Status<V> | ||
*/ | ||
interface GetOptions { | ||
interface GetOptions<V> { | ||
allowStale?: boolean | ||
@@ -821,7 +821,2 @@ updateAgeOnGet?: boolean | ||
/** | ||
* The results of the fetchMethod promise were stored in the cache | ||
*/ | ||
fetchUpdated?: true | ||
/** | ||
* The fetchMethod promise was rejected | ||
@@ -828,0 +823,0 @@ */ |
{ | ||
"name": "lru-cache", | ||
"description": "A cache object that deletes the least-recently-used items.", | ||
"version": "7.18.0", | ||
"version": "7.18.1", | ||
"author": "Isaac Z. Schlueter <i@izs.me>", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
132082
3014