Installation
npm install --save @types/simple-lru
Summary
This package contains type definitions for simple-lru (https://github.com/smagch/simple-lru).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/simple-lru.
index.d.ts
declare class SimpleLRU<K, V> {
constructor(max: number);
del(key: K): V | undefined;
get(key: K): V | undefined;
has(key: K): boolean;
keys(): K[];
length(): number;
max(max?: number): number;
peek(key: K): V | undefined;
reset(): void;
set(key: K, val: V): void;
static version: string;
}
export = SimpleLRU;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by NN.