diff --git a/src/babel/types/alias-keys.json b/src/babel/types/alias-keys.json index 868edc2ce3..82ab44855c 100644 --- a/src/babel/types/alias-keys.json +++ b/src/babel/types/alias-keys.json @@ -80,15 +80,15 @@ "ArrayTypeAnnotation": ["Flow"], "BooleanTypeAnnotation": ["Flow"], "ClassImplements": ["Flow"], - "DeclareClass": ["Flow"], - "DeclareFunction": ["Flow"], - "DeclareModule": ["Flow"], - "DeclareVariable": ["Flow"], + "DeclareClass": ["Flow", "Statement"], + "DeclareFunction": ["Flow", "Statement"], + "DeclareModule": ["Flow", "Statement"], + "DeclareVariable": ["Flow", "Statement"], "FunctionTypeAnnotation": ["Flow"], "FunctionTypeParam": ["Flow"], "GenericTypeAnnotation": ["Flow"], "InterfaceExtends": ["Flow"], - "InterfaceDeclaration": ["Flow"], + "InterfaceDeclaration": ["Flow", "Statement", "Declaration"], "IntersectionTypeAnnotation": ["Flow"], "NullableTypeAnnotation": ["Flow"], "NumberTypeAnnotation": ["Flow"], @@ -96,7 +96,7 @@ "StringTypeAnnotation": ["Flow"], "TupleTypeAnnotation": ["Flow"], "TypeofTypeAnnotation": ["Flow"], - "TypeAlias": ["Flow"], + "TypeAlias": ["Flow", "Statement"], "TypeAnnotation": ["Flow"], "TypeCastExpression": ["Flow"], "TypeParameterDeclaration": ["Flow"],