Files
portfolio2023/node_modules/tmp-cache/index.d.ts
T
2023-11-24 22:35:41 +01:00

15 lines
314 B
TypeScript

declare interface Options {
max?: number;
maxAge?: number;
stale?: boolean;
}
declare class Cache<K, V> extends Map<K, V> {
constructor(options?: Options | number);
get(key: K, refresh?: boolean): V | undefined;
peek(key: K): V | undefined;
set(key: K, value: V, maxAge?: number): this;
}
export = Cache;