We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isPartOfTypeNode
1 parent 1b745df commit f6f6cb8Copy full SHA for f6f6cb8
src/compiler/utilities.ts
@@ -2453,10 +2453,8 @@ export function isPartOfTypeNode(node: Node): boolean {
2453
return node === (parent as TypeAssertion).type;
2454
case SyntaxKind.CallExpression:
2455
case SyntaxKind.NewExpression:
2456
- return contains((parent as CallExpression).typeArguments, node);
2457
case SyntaxKind.TaggedTemplateExpression:
2458
- // TODO (drosen): TaggedTemplateExpressions may eventually support type arguments.
2459
- return false;
+ return contains((parent as CallExpression | TaggedTemplateExpression).typeArguments, node);
2460
}
2461
2462
0 commit comments