Skip to content

Commit

Permalink
correct async type for getCoreModule (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
wooden-worm authored Jul 22, 2024
1 parent 7f1f11e commit 304312c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/js-component-bindgen/src/ts_bindgen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ pub fn ts_bindgen(
instantiateCore?: (module: WebAssembly.Module, imports: Record<string, any>) => WebAssembly.Instance
): {camel};
export function instantiate(
getCoreModule: (path: string) => WebAssembly.Module,
getCoreModule: (path: string) => WebAssembly.Module | Promise<WebAssembly.Module>,
imports: ImportObject,
instantiateCore?: (module: WebAssembly.Module, imports: Record<string, any>) => WebAssembly.Instance | Promise<WebAssembly.Instance>
): {camel} | Promise<{camel}>;
Expand Down

0 comments on commit 304312c

Please sign in to comment.