UNPKG

pi-test-data

Version:
15 lines (13 loc) 461 B
declare module "tiny-lru" { class Lru<T = any> { constructor(max?: number, ttl?: number); public has(key: string): boolean; public get(key: string): T | undefined; public set(key: string, value: T, bypass?: boolean): this; public clear(): this; public delete(key: string): this; public evict(): this; public keys(): string[]; } export default function factory<T = any>(max?: number, ttl?: number): Lru<T>; }