Reword message:more detail about declaration files

This commit is contained in:
Nathan Shively-Sanders
2017-04-24 15:19:30 -07:00
parent 65dae3b0b8
commit 3b8cafe40e
3 changed files with 4 additions and 4 deletions

View File

@@ -1642,7 +1642,7 @@ namespace ts {
}
else if (noImplicitAny && moduleNotFoundError) {
let errorInfo = chainDiagnosticMessages(/*details*/ undefined,
Diagnostics.Try_npm_install_types_Slash_0_if_it_exists_or_adding_declare_module_0_in_a_separate_file,
Diagnostics.Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,
moduleReference);
errorInfo = chainDiagnosticMessages(errorInfo,
Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,

View File

@@ -3310,7 +3310,7 @@
"category": "Error",
"code": 7034
},
"Try `npm install @types/{0}` if it exists or adding `declare module '{0}'` in a separate file.": {
"Try `npm install @types/{0}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`": {
"category": "Error",
"code": 7035
},