mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fix grammar issue in TS9025 diagnostic message (#60136)
This commit is contained in:
@@ -7058,7 +7058,7 @@
|
||||
"category": "Error",
|
||||
"code": 9023
|
||||
},
|
||||
"Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations.": {
|
||||
"Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations.": {
|
||||
"category": "Error",
|
||||
"code": 9025
|
||||
},
|
||||
|
||||
@@ -772,7 +772,7 @@ export function createGetIsolatedDeclarationErrors(resolver: EmitResolver): (nod
|
||||
return createExpressionError(node.initializer);
|
||||
}
|
||||
const message = addUndefined ?
|
||||
Diagnostics.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_supported_with_isolatedDeclarations :
|
||||
Diagnostics.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations :
|
||||
errorByDeclarationKind[node.kind];
|
||||
const diag = createDiagnosticForNode(node, message);
|
||||
const targetStr = getTextOfNode(node.name, /*includeTrivia*/ false);
|
||||
|
||||
@@ -135,7 +135,7 @@ const errorCodes = [
|
||||
Diagnostics.Default_exports_can_t_be_inferred_with_isolatedDeclarations.code,
|
||||
Diagnostics.Only_const_arrays_can_be_inferred_with_isolatedDeclarations.code,
|
||||
Diagnostics.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function.code,
|
||||
Diagnostics.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_supported_with_isolatedDeclarations.code,
|
||||
Diagnostics.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations.code,
|
||||
Diagnostics.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations.code,
|
||||
Diagnostics.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit.code,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user