From 889de06b61864ebe710bf8cc2f6f812b3e1dbc43 Mon Sep 17 00:00:00 2001 From: charliesantos Date: Wed, 4 Sep 2019 15:28:08 -0700 Subject: [PATCH] Supporting comment headers --- dist/lib/converter/factories/comment.js | 5 +---- src/lib/converter/factories/comment.ts | 3 --- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/dist/lib/converter/factories/comment.js b/dist/lib/converter/factories/comment.js index a7dfd8e53..e54b07121 100644 --- a/dist/lib/converter/factories/comment.js +++ b/dist/lib/converter/factories/comment.js @@ -49,9 +49,6 @@ function getRawComment(node) { if (comments && comments.length) { var comment = void 0; if (node.kind === ts.SyntaxKind.SourceFile) { - if (comments.length === 1) { - return null; - } comment = comments[0]; } else { @@ -140,4 +137,4 @@ function parseComment(text, comment) { return comment; } exports.parseComment = parseComment; -//# sourceMappingURL=comment.js.map \ No newline at end of file +//# sourceMappingURL=comment.js.map diff --git a/src/lib/converter/factories/comment.ts b/src/lib/converter/factories/comment.ts index 8ba3811d7..f79e3da14 100644 --- a/src/lib/converter/factories/comment.ts +++ b/src/lib/converter/factories/comment.ts @@ -103,9 +103,6 @@ export function getRawComment(node: ts.Node): string | undefined { if (comments.length) { let comment: ts.CommentRange; if (node.kind === ts.SyntaxKind.SourceFile) { - if (comments.length === 1) { - return; - } comment = comments[0]; } else { comment = comments[comments.length - 1];