mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-18 16:34:36 -05:00
Explicitly annotate return type of getCommentRange (#47860)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user