Add type annotation

This commit is contained in:
Anders Hejlsberg 2017-10-31 13:00:30 -07:00
parent 25af351014
commit 7f35c8fd07

View file

@ -2625,7 +2625,7 @@ namespace ts {
/**
* Gets a custom text range to use when emitting source maps.
*/
export function getSourceMapRange(node: Node) {
export function getSourceMapRange(node: Node): SourceMapRange {
const emitNode = node.emitNode;
return (emitNode && emitNode.sourceMapRange) || node;
}