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];