Merge pull request #1181 from rhysd/fix-dts-struct-fields

Fix missing semicolons at generated struct fields in .d.ts
This commit is contained in:
Alex Crichton 2019-01-15 09:24:16 -08:00 committed by GitHub
commit d5b6c5270b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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