Skip to content

Commit 17153a6

Browse files
committed
Fix linting error
1 parent cc7a24c commit 17153a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24259,7 +24259,7 @@ namespace ts {
2425924259
const elementTypes = arity ? type.typeArguments!.slice() : [];
2426024260
for (let i = arity; i < patternElements.length; i++) {
2426124261
const e = patternElements[i];
24262-
if (i < patternElements.length - 1 || !(e.kind === SyntaxKind.BindingElement && (<BindingElement>e).dotDotDotToken)) {
24262+
if (i < patternElements.length - 1 || !(e.kind === SyntaxKind.BindingElement && e.dotDotDotToken)) {
2426324263
elementTypes.push(!isOmittedExpression(e) && hasDefaultValue(e) ? getTypeFromBindingElement(e, /*includePatternInType*/ false, /*reportErrors*/ false) : anyType);
2426424264
if (!isOmittedExpression(e) && !hasDefaultValue(e)) {
2426524265
reportImplicitAny(e, anyType);

0 commit comments

Comments
 (0)