From 6f912edaab5ab6f66e41e4788b94cb7f94615c0a Mon Sep 17 00:00:00 2001 From: Greg Hurrell Date: Tue, 2 Jun 2015 07:15:06 -0700 Subject: [PATCH] Add "mixed" Flow type "mixed" is one of the base types listed here: http://flowtype.org/docs/base-types.html So this commit adds support for it. --- plugins/flow.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/flow.js b/plugins/flow.js index 189395b6fa..c4b8490829 100644 --- a/plugins/flow.js +++ b/plugins/flow.js @@ -415,6 +415,9 @@ pp.flow_identToTypeAnnotation = function (start, node, id) { case "boolean": return this.finishNode(node, "BooleanTypeAnnotation") + case "mixed": + return this.finishNode(node, "MixedTypeAnnotation") + case "number": return this.finishNode(node, "NumberTypeAnnotation")