Add EmptyTypeAnnotation (#171)
I also noticed that there was missing test coverage for builtin types, so I added a test for that, which includes the newly added type as well as the other existing types.
This commit is contained in:
@@ -499,6 +499,9 @@ pp.flowIdentToTypeAnnotation = function (startPos, startLoc, node, id) {
|
||||
case "mixed":
|
||||
return this.finishNode(node, "MixedTypeAnnotation");
|
||||
|
||||
case "empty":
|
||||
return this.finishNode(node, "EmptyTypeAnnotation");
|
||||
|
||||
case "number":
|
||||
return this.finishNode(node, "NumberTypeAnnotation");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user