From e91e10aae6a14e6f35149e4c7ec1e4693af93a42 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sun, 7 Jun 2015 23:35:35 +0100 Subject: [PATCH] add FlowStatement and FlowDeclaration alias keys --- src/babel/types/alias-keys.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/babel/types/alias-keys.json b/src/babel/types/alias-keys.json index c0b823ac7a..9d917a303c 100644 --- a/src/babel/types/alias-keys.json +++ b/src/babel/types/alias-keys.json @@ -83,15 +83,15 @@ "ArrayTypeAnnotation": ["Flow"], "BooleanTypeAnnotation": ["Flow", "FlowBaseAnnotation"], "ClassImplements": ["Flow"], - "DeclareClass": ["Flow", "Statement"], - "DeclareFunction": ["Flow", "Statement"], - "DeclareModule": ["Flow", "Statement"], - "DeclareVariable": ["Flow", "Statement"], + "DeclareClass": ["Flow", "FlowStatement", "Statement", "FlowDeclaration"], + "DeclareFunction": ["Flow", "FlowStatement", "Statement", "FlowDeclaration"], + "DeclareModule": ["Flow", "FlowStatement", "Statement", "FlowDeclaration"], + "DeclareVariable": ["Flow", "FlowStatement", "Statement", "FlowDeclaration"], "FunctionTypeAnnotation": ["Flow"], "FunctionTypeParam": ["Flow"], "GenericTypeAnnotation": ["Flow"], "InterfaceExtends": ["Flow"], - "InterfaceDeclaration": ["Flow", "Statement", "Declaration"], + "InterfaceDeclaration": ["Flow", "FlowStatement", "Statement", "Declaration"], "IntersectionTypeAnnotation": ["Flow"], "MixedTypeAnnotation": ["Flow", "FlowBaseAnnotation"], "NullableTypeAnnotation": ["Flow"], @@ -100,7 +100,7 @@ "StringTypeAnnotation": ["Flow", "FlowBaseAnnotation"], "TupleTypeAnnotation": ["Flow"], "TypeofTypeAnnotation": ["Flow"], - "TypeAlias": ["Flow", "Statement"], + "TypeAlias": ["Flow", "FlowStatement", "Statement"], "TypeAnnotation": ["Flow"], "TypeCastExpression": ["Flow"], "TypeParameterDeclaration": ["Flow"],