aboutsummaryrefslogtreecommitdiff
path: root/types/lru-cache/index.d.ts
blob: 1f1f2b7ec44fb4127a3495a73d28562231d013ee (plain) (blame)
1
2
3
4
5
6
7
8
9
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;
}