1
Fork 0
autocache/dist/index.d.ts

7 lines
207 B
TypeScript

export function autocache(
path: string | null,
mode: string | number | boolean | null | undefined,
): {
cache: <T>(key: string, compute_value: () => T | Promise<T>) => Promise<T>;
close: () => void;
};