Merge pull request #1638 from lptr/noimplicitany-description-fix

Show --noImplicitAny as an option to throw errors, not warnings
This commit is contained in:
Mohamed Hegazy
2015-01-12 06:22:45 -08:00
7 changed files with 7 additions and 7 deletions

View File

@@ -67,7 +67,7 @@ module ts {
{
name: "noImplicitAny",
type: "boolean",
description: Diagnostics.Warn_on_expressions_and_declarations_with_an_implied_any_type,
description: Diagnostics.Raise_error_on_expressions_and_declarations_with_an_implied_any_type,
},
{
name: "noLib",

View File

@@ -419,7 +419,7 @@ module ts {
Unsupported_locale_0: { code: 6049, category: DiagnosticCategory.Error, key: "Unsupported locale '{0}'." },
Unable_to_open_file_0: { code: 6050, category: DiagnosticCategory.Error, key: "Unable to open file '{0}'." },
Corrupted_locale_file_0: { code: 6051, category: DiagnosticCategory.Error, key: "Corrupted locale file {0}." },
Warn_on_expressions_and_declarations_with_an_implied_any_type: { code: 6052, category: DiagnosticCategory.Message, key: "Warn on expressions and declarations with an implied 'any' type." },
Raise_error_on_expressions_and_declarations_with_an_implied_any_type: { code: 6052, category: DiagnosticCategory.Message, key: "Warn on expressions and declarations with an implied 'any' type." },
File_0_not_found: { code: 6053, category: DiagnosticCategory.Error, key: "File '{0}' not found." },
File_0_must_have_extension_ts_or_d_ts: { code: 6054, category: DiagnosticCategory.Error, key: "File '{0}' must have extension '.ts' or '.d.ts'." },
Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures: { code: 6055, category: DiagnosticCategory.Message, key: "Suppress noImplicitAny errors for indexing objects lacking index signatures." },

View File

@@ -1772,7 +1772,7 @@
"category": "Error",
"code": 6051
},
"Warn on expressions and declarations with an implied 'any' type.": {
"Raise error on expressions and declarations with an implied 'any' type.": {
"category": "Message",
"code": 6052
},

View File

@@ -413,7 +413,7 @@ module TypeScript {
opts.flag('noImplicitAny', {
usage: {
locCode: DiagnosticCode.Warn_on_expressions_and_declarations_with_an_implied_any_type,
locCode: DiagnosticCode.Raise_error_on_expressions_and_declarations_with_an_implied_any_type,
args: null
},
set: () => {

View File

@@ -436,7 +436,7 @@ module TypeScript {
This_version_of_the_Javascript_runtime_does_not_support_the_0_function: "This version of the Javascript runtime does not support the '{0}' function.",
Unknown_rule: "Unknown rule.",
Invalid_line_number_0: "Invalid line number ({0})",
Warn_on_expressions_and_declarations_with_an_implied_any_type: "Warn on expressions and declarations with an implied 'any' type.",
Raise_error_on_expressions_and_declarations_with_an_implied_any_type: "Raise error on expressions and declarations with an implied 'any' type.",
Variable_0_implicitly_has_an_any_type: "Variable '{0}' implicitly has an 'any' type.",
Parameter_0_of_1_implicitly_has_an_any_type: "Parameter '{0}' of '{1}' implicitly has an 'any' type.",
Parameter_0_of_function_type_implicitly_has_an_any_type: "Parameter '{0}' of function type implicitly has an 'any' type.",

View File

@@ -1743,7 +1743,7 @@
"category": "Error",
"code": 7003
},
"Warn on expressions and declarations with an implied 'any' type.": {
"Raise error on expressions and declarations with an implied 'any' type.": {
"category": "Message",
"code": 7004
},

View File

@@ -417,7 +417,7 @@ declare module TypeScript {
This_version_of_the_Javascript_runtime_does_not_support_the_0_function: string;
Unknown_rule: string;
Invalid_line_number_0: string;
Warn_on_expressions_and_declarations_with_an_implied_any_type: string;
Raise_error_on_expressions_and_declarations_with_an_implied_any_type: string;
Variable_0_implicitly_has_an_any_type: string;
Parameter_0_of_1_implicitly_has_an_any_type: string;
Parameter_0_of_function_type_implicitly_has_an_any_type: string;