mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-07-06 15:24:36 -05:00
update error message and update baselines (#27628)
This commit is contained in:
committed by
Ryan Cavanaugh
parent
aafba363e4
commit
591b25593d
@@ -31848,7 +31848,7 @@ namespace ts {
|
||||
return false;
|
||||
}
|
||||
|
||||
return grammarErrorOnFirstToken(node, Diagnostics.A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file);
|
||||
return grammarErrorOnFirstToken(node, Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier);
|
||||
}
|
||||
|
||||
function checkGrammarTopLevelElementsForRequiredDeclareModifier(file: SourceFile): boolean {
|
||||
|
||||
@@ -139,7 +139,7 @@
|
||||
"category": "Error",
|
||||
"code": 1045
|
||||
},
|
||||
"A 'declare' modifier is required for a top level declaration in a .d.ts file.": {
|
||||
"Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier.": {
|
||||
"category": "Error",
|
||||
"code": 1046
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user