Skip to content

Commit 7e57c81

Browse files
authored
Explicitly annotate return type of getCommentRange (#47860)
1 parent 67d4338 commit 7e57c81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/factory/emitNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ namespace ts {
127127
/**
128128
* Gets a custom text range to use when emitting comments.
129129
*/
130-
export function getCommentRange(node: Node) {
130+
export function getCommentRange(node: Node): TextRange {
131131
return node.emitNode?.commentRange ?? node;
132132
}
133133

0 commit comments

Comments
 (0)