Skip to content

Commit 70ad2e4

Browse files
Update packages/typescript/src/ast/is.ts
Co-authored-by: Ryan Cavanaugh <RyanCavanaugh@users.noreply.github.com>
1 parent a3ebec9 commit 70ad2e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/typescript/src/ast

‎packages/typescript/src/ast/is.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ export function isPartOfTypeNode(node: Node): boolean {
929929
case SyntaxKind.ConstructSignature:
930930
case SyntaxKind.IndexSignature:
931931
case SyntaxKind.TypeAssertionExpression:
932-
return "type" in parent && parent.type === node;
932+
return (parent as never as { type: unknown }).type === node;
933933
case SyntaxKind.CallExpression:
934934
case SyntaxKind.NewExpression:
935935
case SyntaxKind.TaggedTemplateExpression:

0 commit comments

Comments
 (0)