Skip to content

Commit

Permalink
Fix ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed May 1, 2022
1 parent 0a2d3a3 commit cdbd0a3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/babel-plugin-transform-destructuring/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,7 @@ export class DestructuringTransformer {
}

buildVariableAssignment(
id:
| t.Identifier
| t.MemberExpression
| t.RestElement
| t.TSParameterProperty,
id: t.AssignmentExpression["left"],
init: t.Expression,
) {
let op = this.operator;
Expand Down Expand Up @@ -238,7 +234,6 @@ export class DestructuringTransformer {
this.objectRestNoSymbols,
this.useBuiltIns,
);
// @ts-expect-error: The argument of a RestElement in ObjectPattern must not be an ArrayPattern
this.nodes.push(this.buildVariableAssignment(spreadProp.argument, value));
}

Expand Down

0 comments on commit cdbd0a3

Please sign in to comment.