Skip to content

Commit c1edcc3

Browse files
committed
Fix invalid TS output with multivalue
1 parent f311e15 commit c1edcc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/cli-support/src/wasm2es6js.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ pub fn interface(module: &Module) -> Result<String, Error> {
9999
ret = match ty.results().len() {
100100
0 => "void",
101101
1 => "number",
102-
_ => "Array",
102+
_ => "number[]",
103103
},
104104
));
105105
}
@@ -147,7 +147,7 @@ pub fn typescript(module: &Module) -> Result<String, Error> {
147147
ret = match ty.results().len() {
148148
0 => "void",
149149
1 => "number",
150-
_ => "Array",
150+
_ => "number[]",
151151
},
152152
));
153153
}

0 commit comments

Comments
 (0)