add exported types
This commit is contained in:
parent
08f0db5b31
commit
951df22461
1 changed files with 7 additions and 0 deletions
7
types/index.d.ts
vendored
Normal file
7
types/index.d.ts
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
export function autocache(
|
||||
path: string,
|
||||
mode: string | number | boolean | null | undefined,
|
||||
): {
|
||||
cache: (key: string, compute_value: () => Promise<any>) => Promise<any>;
|
||||
close: () => void;
|
||||
};
|
Loading…
Add table
Reference in a new issue