update types [skip ci]
This commit is contained in:
parent
9b44cef691
commit
9e2ef0cf9e
@ -46,7 +46,7 @@ See also `t.isArrayPattern(node, opts)` and `t.assertArrayPattern(node, opts)`.
|
|||||||
|
|
||||||
Aliases: `Pattern`, `LVal`
|
Aliases: `Pattern`, `LVal`
|
||||||
|
|
||||||
- `elements`: `Array<Expression>` (required)
|
- `elements`: `Array<Identifier | Pattern | RestElement>` (required)
|
||||||
- `typeAnnotation` (required)
|
- `typeAnnotation` (required)
|
||||||
- `decorators`: `Array<Decorator>` (default: `null`)
|
- `decorators`: `Array<Decorator>` (default: `null`)
|
||||||
|
|
||||||
@ -1179,8 +1179,8 @@ See also `t.isMetaProperty(node, opts)` and `t.assertMetaProperty(node, opts)`.
|
|||||||
|
|
||||||
Aliases: `Expression`
|
Aliases: `Expression`
|
||||||
|
|
||||||
- `meta`: `string` (required)
|
- `meta`: `Identifier` (required)
|
||||||
- `property`: `string` (required)
|
- `property`: `Identifier` (required)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -1354,7 +1354,7 @@ See also `t.isObjectProperty(node, opts)` and `t.assertObjectProperty(node, opts
|
|||||||
Aliases: `UserWhitespacable`, `Property`, `ObjectMember`
|
Aliases: `UserWhitespacable`, `Property`, `ObjectMember`
|
||||||
|
|
||||||
- `key`if computed then `Expression` else `Identifier | Literal` (required)
|
- `key`if computed then `Expression` else `Identifier | Literal` (required)
|
||||||
- `value`: `Expression` (required)
|
- `value`: `Expression | Pattern | RestElement` (required)
|
||||||
- `computed`: `boolean` (default: `false`)
|
- `computed`: `boolean` (default: `false`)
|
||||||
- `shorthand`: `boolean` (default: `false`)
|
- `shorthand`: `boolean` (default: `false`)
|
||||||
- `decorators`: `Array<Decorator>` (default: `null`)
|
- `decorators`: `Array<Decorator>` (default: `null`)
|
||||||
@ -1418,6 +1418,19 @@ Aliases: `Flow`, `UserWhitespacable`
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
### objectTypeSpreadProperty
|
||||||
|
```javascript
|
||||||
|
t.objectTypeSpreadProperty(argument)
|
||||||
|
```
|
||||||
|
|
||||||
|
See also `t.isObjectTypeSpreadProperty(node, opts)` and `t.assertObjectTypeSpreadProperty(node, opts)`.
|
||||||
|
|
||||||
|
Aliases: `Flow`, `UserWhitespacable`
|
||||||
|
|
||||||
|
- `argument` (required)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
### parenthesizedExpression
|
### parenthesizedExpression
|
||||||
```javascript
|
```javascript
|
||||||
t.parenthesizedExpression(expression)
|
t.parenthesizedExpression(expression)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user