Skip to content

Commit

Permalink
fix missing semicolons to struct fields in .d.ts
Browse files Browse the repository at this point in the history
TypeScript class property requires semicolon at the end:
    https://www.typescriptlang.org/docs/handbook/classes.html
  • Loading branch information
rhysd committed Jan 15, 2019
1 parent 715b4f4 commit 8d68398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/cli-support/src/js/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2514,7 +2514,7 @@ impl<'a, 'b> SubContext<'a, 'b> {
.argument(&descriptor)?
.ret(&Descriptor::Unit)?;
ts_dst.push_str(&format!(
"{}{}: {}\n",
"{}{}: {};\n",
if field.readonly { "readonly " } else { "" },
field.name,
&cx.js_arguments[0].1
Expand Down

0 comments on commit 8d68398

Please sign in to comment.