Merge pull request #1302 from tyleranton/export-comments-ts

Add doc comments export for typescript
This commit is contained in:
Alex Crichton 2019-02-28 09:34:11 -06:00 committed by GitHub
commit da168dc7f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,6 +122,7 @@ impl<'a> Context<'a> {
let contents = contents.trim();
if let Some(ref c) = comments {
self.globals.push_str(c);
self.typescript.push_str(c);
}
let global = if self.use_node_require() {
if contents.starts_with("class") {