mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 02:00:51 +00:00
Merge pull request #1472 from c410-f3r/ts-methods
TS: Add docs for methods
This commit is contained in:
commit
7decb133f0
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user