babel-types
Advanced tools
Comparing version 6.24.1 to 6.25.0
@@ -509,3 +509,3 @@ "use strict"; | ||
value: { | ||
validate: (0, _index2.assertNodeType)("Expression") | ||
validate: (0, _index2.assertNodeType)("Expression", "Pattern", "RestElement") | ||
}, | ||
@@ -512,0 +512,0 @@ shorthand: { |
@@ -30,3 +30,3 @@ "use strict"; | ||
elements: { | ||
validate: (0, _index.chain)((0, _index.assertValueType)("array"), (0, _index.assertEach)((0, _index.assertNodeType)("Expression"))) | ||
validate: (0, _index.chain)((0, _index.assertValueType)("array"), (0, _index.assertEach)((0, _index.assertNodeType)("Identifier", "Pattern", "RestElement"))) | ||
}, | ||
@@ -33,0 +33,0 @@ decorators: { |
@@ -246,2 +246,8 @@ "use strict"; | ||
(0, _index2.default)("ObjectTypeSpreadProperty", { | ||
visitor: ["argument"], | ||
aliases: ["Flow", "UserWhitespacable"], | ||
fields: {} | ||
}); | ||
(0, _index2.default)("QualifiedTypeIdentifier", { | ||
@@ -248,0 +254,0 @@ visitor: ["id", "qualification"], |
{ | ||
"name": "babel-types", | ||
"version": "6.24.1", | ||
"version": "6.25.0", | ||
"description": "Babel Types is a Lodash-esque utility library for AST nodes", | ||
@@ -17,4 +17,4 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
"devDependencies": { | ||
"babylon": "^6.8.2" | ||
"babylon": "^6.17.2" | ||
} | ||
} |
@@ -49,3 +49,3 @@ # babel-types | ||
- `elements`: `Array<Expression>` (required) | ||
- `elements`: `Array<Identifier | Pattern | RestElement>` (required) | ||
- `typeAnnotation` (required) | ||
@@ -1372,3 +1372,3 @@ - `decorators`: `Array<Decorator>` (default: `null`) | ||
- `key`if computed then `Expression` else `Identifier | Literal` (required) | ||
- `value`: `Expression` (required) | ||
- `value`: `Expression | Pattern | RestElement` (required) | ||
- `computed`: `boolean` (default: `false`) | ||
@@ -1437,2 +1437,15 @@ - `shorthand`: `boolean` (default: `false`) | ||
### objectTypeSpreadProperty | ||
```javascript | ||
t.objectTypeSpreadProperty(argument) | ||
``` | ||
See also `t.isObjectTypeSpreadProperty(node, opts)` and `t.assertObjectTypeSpreadProperty(node, opts)`. | ||
Aliases: `Flow`, `UserWhitespacable` | ||
- `argument` (required) | ||
--- | ||
### parenthesizedExpression | ||
@@ -1439,0 +1452,0 @@ ```javascript |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
137665
3024
1984