Support TypeScript mapped type 'as' clauses (#12129)
This commit is contained in:
@@ -306,12 +306,13 @@ defineType("TSIndexedAccessType", {
|
||||
|
||||
defineType("TSMappedType", {
|
||||
aliases: ["TSType"],
|
||||
visitor: ["typeParameter", "typeAnnotation"],
|
||||
visitor: ["typeParameter", "typeAnnotation", "nameType"],
|
||||
fields: {
|
||||
readonly: validateOptional(bool),
|
||||
typeParameter: validateType("TSTypeParameter"),
|
||||
optional: validateOptional(bool),
|
||||
typeAnnotation: validateOptionalType("TSType"),
|
||||
nameType: validateOptionalType("TSType"),
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user