Skip to content

Commit 6f23f9a

Browse files
Fix error message incorrectly referencing 'asserts' instead of 'assert'.
1 parent 32ebd28 commit 6f23f9a

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
@@ -48156,7 +48156,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
4815648156
}
4815748157

4815848158
if (moduleKind === ModuleKind.NodeNext && !isImportAttributes) {
48159-
return grammarErrorOnFirstToken(node, Diagnostics.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_asserts);
48159+
return grammarErrorOnFirstToken(node, Diagnostics.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert);
4816048160
}
4816148161

4816248162
if (declaration.moduleSpecifier && getEmitSyntaxForModuleSpecifierExpression(declaration.moduleSpecifier) === ModuleKind.CommonJS) {

src/compiler/diagnosticMessages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3983,7 +3983,7 @@
39833983
"category": "Error",
39843984
"code": 2879
39853985
},
3986-
"Import assertions have been replaced by import attributes. Use 'with' instead of 'asserts'.": {
3986+
"Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'.": {
39873987
"category": "Error",
39883988
"code": 2880
39893989
},

0 commit comments

Comments
 (0)