From 951df224615e657a811ae807435e62e596170c61 Mon Sep 17 00:00:00 2001 From: Conduitry Date: Wed, 14 Oct 2020 18:48:32 -0400 Subject: [PATCH] add exported types --- types/index.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 types/index.d.ts 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; +};