Explicitly annotate return type of getCommentRange (#47860)

This commit is contained in:
Wesley Wigham authored and GitHub committed 2022-02-14 09:21:43 -08:00
1 parent 67d433893d
commit 7e57c81802
1 file changed
+1 -1
+1 -1
View File
@@ -127,7 +127,7 @@ namespace ts {
/**
* Gets a custom text range to use when emitting comments.
*/
export function getCommentRange(node: Node) {
export function getCommentRange(node: Node): TextRange {
return node.emitNode?.commentRange ?? node;
}