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.
1 parent 2e8d11e commit 4e56fc0Copy full SHA for 4e56fc0
src/compiler/checker.ts
@@ -4979,7 +4979,7 @@ namespace ts {
4979
}
4980
4981
function getTypeReferenceArity(type: TypeReference): number {
4982
- return type.target.typeParameters.length;
+ return type.target.typeParameters ? type.target.typeParameters.length : 0;
4983
4984
4985
// Get type from reference to class or interface
0 commit comments