diff --git a/types/index.d.ts b/types/index.d.ts new file mode 100644 index 0000000..2ea89a5 --- /dev/null +++ b/types/index.d.ts @@ -0,0 +1,7 @@ +export function autocache( + path: string, + mode: string | number | boolean | null | undefined, +): { + cache: (key: string, compute_value: () => Promise) => Promise; + close: () => void; +};