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 7e115bb commit d34bbe5Copy full SHA for d34bbe5
src/compiler/checker.ts
@@ -4107,6 +4107,7 @@ namespace ts {
4107
function resolveTupleTypeMembers(type: TupleType, thisArgument?: Type) {
4108
const arrayElementType = getUnionType(type.elementTypes);
4109
// Make the tuple type itself the 'this' type by including an extra type argument
4110
+ // (Unless it's provided in the case that the tuple is a type parameter constraint)
4111
const arrayType = resolveStructuredTypeMembers(createTypeFromGenericGlobalType(globalArrayType, [arrayElementType, thisArgument || type]));
4112
const members = createTupleTypeMemberSymbols(type.elementTypes);
4113
addInheritedMembers(members, arrayType.properties);
0 commit comments