File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -420,6 +420,7 @@ import {
420
420
hasSyntacticModifier,
421
421
hasSyntacticModifiers,
422
422
hasType,
423
+ hasTypeArguments,
423
424
HeritageClause,
424
425
hostGetCanonicalFileName,
425
426
Identifier,
@@ -42705,10 +42706,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
42705
42706
42706
42707
function getTypeArgumentConstraint(node: TypeNode): Type | undefined {
42707
42708
let typeArgumentPosition;
42708
- if (
42709
- "typeArguments" in node.parent && // eslint-disable-line local/no-in-operator
42710
- Array.isArray(node.parent.typeArguments)
42711
- ) {
42709
+ if (hasTypeArguments(node.parent) && Array.isArray(node.parent.typeArguments)) {
42712
42710
typeArgumentPosition = node.parent.typeArguments.indexOf(node);
42713
42711
}
42714
42712
You can’t perform that action at this time.
0 commit comments