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 07af6ca commit ad67cd3Copy full SHA for ad67cd3
src/compiler/checker.ts
@@ -2274,10 +2274,6 @@ namespace ts {
2274
// fact an iterable or array (depending on target language).
2275
let elementType = checkIteratedTypeOrElementType(parentType, pattern, /*allowStringInput*/ false);
2276
if (!declaration.dotDotDotToken) {
2277
- if (isTypeAny(elementType)) {
2278
- return elementType;
2279
- }
2280
-
2281
// Use specific property type when parent is a tuple or numeric index type when parent is an array
2282
let propName = "" + indexOf(pattern.elements, declaration);
2283
type = isTupleLikeType(parentType)
0 commit comments