diff options
Diffstat (limited to 'types/lru-cache/index.d.ts')
-rw-r--r-- | types/lru-cache/index.d.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/types/lru-cache/index.d.ts b/types/lru-cache/index.d.ts new file mode 100644 index 0000000..1f1f2b7 --- /dev/null +++ b/types/lru-cache/index.d.ts @@ -0,0 +1,10 @@ +declare module 'lru-cache' { + class LRUCache<K, V> { + constructor(config: { max: number, dispose: (k: K, v: V) => any}); + get length(): number; + has(key: K): boolean; + get(key: K): V; + set(key: K, val: V); + } + export = LRUCache; +} |