Add EmptyTypeAnnotation (#4724)
Added to Flow in facebook/flow#c603505583993aa953904005f91c350f4b65d6bd Parser support added in babel/babylon#171.
This commit is contained in:
@@ -755,6 +755,11 @@ See also `t.isMixedTypeAnnotation(node, opts)` and `t.assertMixedTypeAnnotation(
|
||||
|
||||
Aliases: `Flow`, `FlowBaseAnnotation`
|
||||
|
||||
### t.emptyTypeAnnotation()
|
||||
|
||||
See also `t.isEmptyTypeAnnotation(node, opts)` and `t.assertEmptyTypeAnnotation(node, opts)`.
|
||||
|
||||
Aliases: `Flow`, `FlowBaseAnnotation`
|
||||
|
||||
### t.newExpression(callee, arguments)
|
||||
|
||||
|
||||
@@ -167,6 +167,10 @@ defineType("MixedTypeAnnotation", {
|
||||
aliases: ["Flow", "FlowBaseAnnotation"]
|
||||
});
|
||||
|
||||
defineType("EmptyTypeAnnotation", {
|
||||
aliases: ["Flow", "FlowBaseAnnotation"]
|
||||
});
|
||||
|
||||
defineType("NullableTypeAnnotation", {
|
||||
visitor: ["typeAnnotation"],
|
||||
aliases: ["Flow"],
|
||||
|
||||
Reference in New Issue
Block a user