Explicitly annotate return type of getCommentRange (#47860)

This commit is contained in:
Wesley Wigham
2022-02-14 09:21:43 -08:00
committed by GitHub
parent 67d433893d
commit 7e57c81802

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;
}