We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5cda46 commit 56df48dCopy full SHA for 56df48d
src/compiler/checker.ts
@@ -32802,7 +32802,7 @@ namespace ts {
32802
Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead);
32803
}
32804
32805
- return grammarErrorOnNode(parameter.name, Diagnostics.An_index_signature_parameter_type_must_be_string_or_number);
+ return grammarErrorOnNode(parameter.name, Diagnostics.An_index_signature_parameter_type_must_be_either_string_or_number);
32806
32807
if (!node.type) {
32808
return grammarErrorOnNode(node, Diagnostics.An_index_signature_must_have_a_type_annotation);
0 commit comments