We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d139228 + 9b5de9f commit 8ef820aCopy full SHA for 8ef820a
crates/cli-support/src/js/mod.rs
@@ -922,7 +922,7 @@ impl<'a> Context<'a> {
922
*\n\
923
* @returns {{Promise<any>}}\n\
924
*/\n\
925
- export function init \
+ export default function init \
926
(module_or_path: RequestInfo | BufferSource | WebAssembly.Module{}): Promise<any>;
927
",
928
memory_doc, memory_param
crates/typescript-tests/src/web/init.ts
@@ -1,3 +1,3 @@
1
-import * as wbg from '../../pkg/web/typescript_tests';
+import initialize from "../../pkg/web/typescript_tests";
2
3
-const init: Promise<any> = wbg.init('.');
+const init: Promise<any> = initialize(".");
0 commit comments