File tree 1 file changed +13
-8
lines changed 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -21201,16 +21201,21 @@ namespace ts {
21201
21201
}
21202
21202
arrayOrTupleConstituent = constituent;
21203
21203
}
21204
- else {
21205
- const properties = getPropertiesOfType(constituent);
21206
- for (const property of properties) {
21207
- if (isNumericLiteralName(property.escapedName) || property.escapedName === "length" as __String) {
21208
- return undefined;
21204
+ }
21205
+
21206
+ if (arrayOrTupleConstituent) {
21207
+ for (const constituent of (type as IntersectionType).types) {
21208
+ if (constituent !== arrayOrTupleConstituent) {
21209
+ const properties = getPropertiesOfType(constituent);
21210
+ for (const property of properties) {
21211
+ if (isNumericLiteralName(property.escapedName) || property.escapedName === "length" as __String) {
21212
+ return undefined;
21213
+ }
21209
21214
}
21210
- }
21211
21215
21212
- if (some(getIndexInfosOfType(constituent))) {
21213
- return undefined;
21216
+ if (some(getIndexInfosOfType(constituent))) {
21217
+ return undefined;
21218
+ }
21214
21219
}
21215
21220
}
21216
21221
}
You can’t perform that action at this time.
0 commit comments