Skip to content

Commit 8ef820a

Browse files
authored
Merge pull request #1520 from darthtrevino/bugfix/1517_typings
Update init() typings
2 parents d139228 + 9b5de9f commit 8ef820a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/cli-support/src/js/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ impl<'a> Context<'a> {
922922
*\n\
923923
* @returns {{Promise<any>}}\n\
924924
*/\n\
925-
export function init \
925+
export default function init \
926926
(module_or_path: RequestInfo | BufferSource | WebAssembly.Module{}): Promise<any>;
927927
",
928928
memory_doc, memory_param
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import * as wbg from '../../pkg/web/typescript_tests';
1+
import initialize from "../../pkg/web/typescript_tests";
22

3-
const init: Promise<any> = wbg.init('.');
3+
const init: Promise<any> = initialize(".");

0 commit comments

Comments
 (0)