Skip to content

Commit

Permalink
Merge pull request #1 from ryan-rowland/support_comment_headers
Browse files Browse the repository at this point in the history
Supporting comment headers
  • Loading branch information
ryan-rowland authored Sep 5, 2019
2 parents 3d0d395 + 889de06 commit 86c486e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 1 addition & 4 deletions dist/lib/converter/factories/comment.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions src/lib/converter/factories/comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 86c486e

Please sign in to comment.