mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-02 10:21:07 +00:00
Add doc comments export for typescript
This commit is contained in:
parent
6cabb07358
commit
59825c6d01
@ -122,6 +122,7 @@ impl<'a> Context<'a> {
|
|||||||
let contents = contents.trim();
|
let contents = contents.trim();
|
||||||
if let Some(ref c) = comments {
|
if let Some(ref c) = comments {
|
||||||
self.globals.push_str(c);
|
self.globals.push_str(c);
|
||||||
|
self.typescript.push_str(c);
|
||||||
}
|
}
|
||||||
let global = if self.use_node_require() {
|
let global = if self.use_node_require() {
|
||||||
if contents.starts_with("class") {
|
if contents.starts_with("class") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user