quick-lru
Advanced tools
Comparing version 5.1.0 to 5.1.1
declare namespace QuickLRU { | ||
interface Options { | ||
interface Options<KeyType, ValueType> { | ||
/** | ||
@@ -13,3 +13,3 @@ The maximum number of items before evicting the least recently used items. | ||
*/ | ||
onEviction?: <KeyType, ValueType>(key: KeyType, value: ValueType) => void; | ||
onEviction?: (key: KeyType, value: ValueType) => void; | ||
} | ||
@@ -45,3 +45,3 @@ } | ||
*/ | ||
constructor(options: QuickLRU.Options); | ||
constructor(options: QuickLRU.Options<KeyType, ValueType>); | ||
@@ -48,0 +48,0 @@ [Symbol.iterator](): IterableIterator<[KeyType, ValueType]>; |
{ | ||
"name": "quick-lru", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "Simple “Least Recently Used” (LRU) cache", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
8645