Skip to content

Commit

Permalink
Merge pull request #1472 from c410-f3r/ts-methods
Browse files Browse the repository at this point in the history
TS: Add docs for methods
  • Loading branch information
alexcrichton committed Apr 18, 2019
2 parents 68e6b4f + 59fd11b commit 7decb13
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/cli-support/src/js/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2667,9 +2667,10 @@ impl<'a, 'b> SubContext<'a, 'b> {
.expect("classes already written")
.entry(class_name.to_string())
.or_insert(ExportedClass::default());
class
.contents
.push_str(&format_doc_comments(&export.comments, Some(js_doc)));

let doc_comments = format_doc_comments(&export.comments, Some(js_doc));
class.contents.push_str(&doc_comments);
class.typescript.push_str(&doc_comments);

class.typescript.push_str(" "); // Indentation

Expand Down

0 comments on commit 7decb13

Please sign in to comment.