mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-07 05:41:22 -06:00
Fix linting error
This commit is contained in:
parent
cc7a24c27f
commit
17153a6e5f
@ -24259,7 +24259,7 @@ namespace ts {
|
||||
const elementTypes = arity ? type.typeArguments!.slice() : [];
|
||||
for (let i = arity; i < patternElements.length; i++) {
|
||||
const e = patternElements[i];
|
||||
if (i < patternElements.length - 1 || !(e.kind === SyntaxKind.BindingElement && (<BindingElement>e).dotDotDotToken)) {
|
||||
if (i < patternElements.length - 1 || !(e.kind === SyntaxKind.BindingElement && e.dotDotDotToken)) {
|
||||
elementTypes.push(!isOmittedExpression(e) && hasDefaultValue(e) ? getTypeFromBindingElement(e, /*includePatternInType*/ false, /*reportErrors*/ false) : anyType);
|
||||
if (!isOmittedExpression(e) && !hasDefaultValue(e)) {
|
||||
reportImplicitAny(e, anyType);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user