mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-11-23 22:11:19 +03:00
fix missing semicolons to struct fields in .d.ts
TypeScript class property requires semicolon at the end: https://www.typescriptlang.org/docs/handbook/classes.html
This commit is contained in:
parent
715b4f4ced
commit
8d6839878e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user