Skip to content

Commit f6f6cb8

Browse files
Include type parameters in tagged template literals in isPartOfTypeNode (#53428)
1 parent 1b745df commit f6f6cb8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/compiler/utilities.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2453,10 +2453,8 @@ export function isPartOfTypeNode(node: Node): boolean {
24532453
return node === (parent as TypeAssertion).type;
24542454
case SyntaxKind.CallExpression:
24552455
case SyntaxKind.NewExpression:
2456-
return contains((parent as CallExpression).typeArguments, node);
24572456
case SyntaxKind.TaggedTemplateExpression:
2458-
// TODO (drosen): TaggedTemplateExpressions may eventually support type arguments.
2459-
return false;
2457+
return contains((parent as CallExpression | TaggedTemplateExpression).typeArguments, node);
24602458
}
24612459
}
24622460
}

0 commit comments

Comments
 (0)