Skip to content

Commit b43cc6b

Browse files
authored
Merge pull request #13472 from Manish-Giri/fix/incorrect-return-type
Fix incorrect return type
2 parents 43a2d38 + ebf36ac commit b43cc6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/scanner.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -734,11 +734,11 @@ namespace ts {
734734
return comments;
735735
}
736736

737-
export function getLeadingCommentRanges(text: string, pos: number): CommentRange[] {
737+
export function getLeadingCommentRanges(text: string, pos: number): CommentRange[] | undefined {
738738
return reduceEachLeadingCommentRange(text, pos, appendCommentRange, undefined, undefined);
739739
}
740740

741-
export function getTrailingCommentRanges(text: string, pos: number): CommentRange[] {
741+
export function getTrailingCommentRanges(text: string, pos: number): CommentRange[] | undefined {
742742
return reduceEachTrailingCommentRange(text, pos, appendCommentRange, undefined, undefined);
743743
}
744744

0 commit comments

Comments
 (0)