npm.io
0.0.2 • Published 2 years ago

@types/simple-lru

Licence
MIT
Version
0.0.2
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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 1536 GMT
  • Dependencies: none

Credits

These definitions were written by NN.