Skip to content

Commit 7decb13

Browse files
authored
Merge pull request #1472 from c410-f3r/ts-methods
TS: Add docs for methods
2 parents 68e6b4f + 59fd11b commit 7decb13

File tree

1 file changed

+4
-3
lines changed
  • crates/cli-support/src/js

1 file changed

+4
-3
lines changed

crates/cli-support/src/js/mod.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -2667,9 +2667,10 @@ impl<'a, 'b> SubContext<'a, 'b> {
26672667
.expect("classes already written")
26682668
.entry(class_name.to_string())
26692669
.or_insert(ExportedClass::default());
2670-
class
2671-
.contents
2672-
.push_str(&format_doc_comments(&export.comments, Some(js_doc)));
2670+
2671+
let doc_comments = format_doc_comments(&export.comments, Some(js_doc));
2672+
class.contents.push_str(&doc_comments);
2673+
class.typescript.push_str(&doc_comments);
26732674

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

0 commit comments

Comments
 (0)