mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 21:06:50 -05:00
Fix crash getting error for type alias index signature without a type
This commit is contained in:
@@ -31005,7 +31005,7 @@ namespace ts {
|
||||
Diagnostics.An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead,
|
||||
getTextOfNode(parameter.name),
|
||||
typeToString(type),
|
||||
typeToString(getTypeFromTypeNode(node.type!)));
|
||||
typeToString(node.type ? getTypeFromTypeNode(node.type) : anyType));
|
||||
}
|
||||
|
||||
if (type.flags & TypeFlags.Union && allTypesAssignableToKind(type, TypeFlags.StringLiteral, /*strict*/ true)) {
|
||||
|
||||
Reference in New Issue
Block a user