Fix support for Flow's QualifiedTypeIdentifier (#9396)
This commit is contained in:
@@ -191,7 +191,7 @@ defineType("GenericTypeAnnotation", {
|
||||
visitor: ["id", "typeParameters"],
|
||||
aliases: ["Flow", "FlowType"],
|
||||
fields: {
|
||||
id: validateType("Identifier"),
|
||||
id: validateType(["Identifier", "QualifiedTypeIdentifier"]),
|
||||
typeParameters: validateOptionalType("TypeParameterInstantiation"),
|
||||
},
|
||||
});
|
||||
@@ -204,7 +204,7 @@ defineType("InterfaceExtends", {
|
||||
visitor: ["id", "typeParameters"],
|
||||
aliases: ["Flow"],
|
||||
fields: {
|
||||
id: validateType("Identifier"),
|
||||
id: validateType(["Identifier", "QualifiedTypeIdentifier"]),
|
||||
typeParameters: validateOptionalType("TypeParameterInstantiation"),
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user