Skip to content

Commit 2256f91

Browse files
committed
Fix typo
1 parent a7ca7f4 commit 2256f91

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30524,7 +30524,7 @@ namespace ts {
3052430524
}
3052530525
else if (node.operator === SyntaxKind.ReadonlyKeyword) {
3052630526
if (node.type.kind !== SyntaxKind.ArrayType && node.type.kind !== SyntaxKind.TupleType) {
30527-
return grammarErrorOnFirstToken(node, Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_typle_types, tokenToString(SyntaxKind.SymbolKeyword));
30527+
return grammarErrorOnFirstToken(node, Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_types, tokenToString(SyntaxKind.SymbolKeyword));
3052830528
}
3052930529
}
3053030530
}

src/compiler/diagnosticMessages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@
10231023
"category": "Error",
10241024
"code": 1353
10251025
},
1026-
"'readonly' type modifier is only permitted on array and typle types.": {
1026+
"'readonly' type modifier is only permitted on array and tuple types.": {
10271027
"category": "Error",
10281028
"code": 1354
10291029
},

0 commit comments

Comments
 (0)