From c6675eae42b057c64fab42a8195c86bfdddbef47 Mon Sep 17 00:00:00 2001 From: Radu M Date: Fri, 7 Aug 2020 19:05:38 -0700 Subject: [PATCH] Add TypeScript definition file Signed-off-by: Radu M --- index.d.ts | 4 ++++ package.json | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 index.d.ts diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..f14f1f6 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,4 @@ +export class Instance extends WebAssembly.Instance {} + +export const instantiate: typeof WebAssembly.instantiate; +export const instantiateStreaming: typeof WebAssembly.instantiateStreaming; diff --git a/package.json b/package.json index 3df207d..41c793e 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,8 @@ "url": "git+https://github.com/GoogleChromeLabs/asyncify.git" }, "files": [ - "dist/asyncify.*" + "dist/asyncify.*", + "index.d.ts" ], "keywords": [ "asyncify",