Skip to content

Commit

Permalink
Fix invalid TS output with multivalue
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda committed Oct 31, 2024
1 parent f311e15 commit c1edcc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/cli-support/src/wasm2es6js.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ pub fn interface(module: &Module) -> Result<String, Error> {
ret = match ty.results().len() {
0 => "void",
1 => "number",
_ => "Array",
_ => "number[]",
},
));
}
Expand Down Expand Up @@ -147,7 +147,7 @@ pub fn typescript(module: &Module) -> Result<String, Error> {
ret = match ty.results().len() {
0 => "void",
1 => "number",
_ => "Array",
_ => "number[]",
},
));
}
Expand Down

0 comments on commit c1edcc3

Please sign in to comment.