remove unnecessary blank lines in .d.ts file

This commit is contained in:
rhysd
2019-02-01 16:07:31 +09:00
parent 23ccd3b5c1
commit a1995cafd4
2 changed files with 3 additions and 3 deletions

View File

@ -743,7 +743,7 @@ impl<'a, 'b> Js2Rust<'a, 'b> {
ts.push_str(": "); ts.push_str(": ");
ts.push_str(&self.ret_ty); ts.push_str(&self.ret_ty);
} }
ts.push_str(";\n"); ts.push(';');
(js, ts, self.js_doc_comments()) (js, ts, self.js_doc_comments())
} }
} }

View File

@ -845,7 +845,7 @@ impl<'a> Context<'a> {
", ",
name, name,
)); ));
ts_dst.push_str(" free(): void;\n"); ts_dst.push_str(" free(): void;");
dst.push_str(&class.contents); dst.push_str(&class.contents);
ts_dst.push_str(&class.typescript); ts_dst.push_str(&class.typescript);
dst.push_str("}\n"); dst.push_str("}\n");
@ -2598,7 +2598,7 @@ impl<'a, 'b> SubContext<'a, 'b> {
.argument(&descriptor)? .argument(&descriptor)?
.ret(&Descriptor::Unit)?; .ret(&Descriptor::Unit)?;
ts_dst.push_str(&format!( ts_dst.push_str(&format!(
" {}{}: {};\n", "\n {}{}: {};",
if field.readonly { "readonly " } else { "" }, if field.readonly { "readonly " } else { "" },
field.name, field.name,
&cx.js_arguments[0].1 &cx.js_arguments[0].1