@types/simple-lru
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/simple-lru

Weekly Downloads

81

Version

0.0.2

License

MIT

Unpacked Size

3.22 kB

Total Files

5

Last publish

Collaborators

  • types