From 66feac5c6d088bf6a9f8a260051fdaab541334bd Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Fri, 11 Feb 2022 23:36:48 -0800 Subject: [PATCH] Explicitly annotate return type of getCommentRange --- src/compiler/factory/emitNode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/factory/emitNode.ts b/src/compiler/factory/emitNode.ts index ebb7300efdeec..6c207994331a3 100644 --- a/src/compiler/factory/emitNode.ts +++ b/src/compiler/factory/emitNode.ts @@ -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; }