Skip to content

Commit 85986dd

Browse files
author
Arthur Ozga
committed
dont check isPartOfTypeNode
1 parent 797f6da commit 85986dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/utilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3735,7 +3735,7 @@ namespace ts {
37353735
* of a TypeNode.
37363736
*/
37373737
export function isTypeNode(node: Node): node is TypeNode {
3738-
return node && isTypeNodeKind(node.kind) && (!node.parent || isPartOfTypeNode(node));
3738+
return node && isTypeNodeKind(node.kind);
37393739
}
37403740

37413741
// Binding patterns

0 commit comments

Comments
 (0)