From 304312c9cadd6df7905b445fa5a1088de5dda220 Mon Sep 17 00:00:00 2001 From: wooden-worm <93303706+wooden-worm@users.noreply.github.com> Date: Mon, 22 Jul 2024 13:18:01 -0700 Subject: [PATCH] correct async type for `getCoreModule` (#473) --- crates/js-component-bindgen/src/ts_bindgen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/js-component-bindgen/src/ts_bindgen.rs b/crates/js-component-bindgen/src/ts_bindgen.rs index e4ff84b00..d42ec79c6 100644 --- a/crates/js-component-bindgen/src/ts_bindgen.rs +++ b/crates/js-component-bindgen/src/ts_bindgen.rs @@ -254,7 +254,7 @@ pub fn ts_bindgen( instantiateCore?: (module: WebAssembly.Module, imports: Record) => WebAssembly.Instance ): {camel}; export function instantiate( - getCoreModule: (path: string) => WebAssembly.Module, + getCoreModule: (path: string) => WebAssembly.Module | Promise, imports: ImportObject, instantiateCore?: (module: WebAssembly.Module, imports: Record) => WebAssembly.Instance | Promise ): {camel} | Promise<{camel}>;