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 fdfe978 commit 99d6bf9Copy full SHA for 99d6bf9
1 file changed
packages/babel-types/src/definitions/core.ts
@@ -898,7 +898,12 @@ defineType("RestElement", {
898
argument: {
899
validate: !process.env.BABEL_TYPES_8_BREAKING
900
? assertNodeType("LVal")
901
- : assertNodeType("Identifier", "Pattern", "MemberExpression"),
+ : assertNodeType(
902
+ "Identifier",
903
+ "ArrayPattern",
904
+ "ObjectPattern",
905
+ "MemberExpression",
906
+ ),
907
},
908
// For Flow
909
optional: {
0 commit comments