You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/compiler/diagnosticInformationMap.generated.ts
+1
Original file line number
Diff line number
Diff line change
@@ -254,6 +254,7 @@ namespace ts {
254
254
Only_a_void_function_can_be_called_with_the_new_keyword: {code: 2350,category: DiagnosticCategory.Error,key: "Only a void function can be called with the 'new' keyword."},
255
255
Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature: {code: 2351,category: DiagnosticCategory.Error,key: "Cannot use 'new' with an expression whose type lacks a call or construct signature."},
256
256
Neither_type_0_nor_type_1_is_assignable_to_the_other: {code: 2352,category: DiagnosticCategory.Error,key: "Neither type '{0}' nor type '{1}' is assignable to the other."},
257
+
Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1: {code: 2353,category: DiagnosticCategory.Error,key: "Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."},
257
258
No_best_common_type_exists_among_return_expressions: {code: 2354,category: DiagnosticCategory.Error,key: "No best common type exists among return expressions."},
258
259
A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_or_consist_of_a_single_throw_statement: {code: 2355,category: DiagnosticCategory.Error,key: "A function whose declared type is neither 'void' nor 'any' must return a value or consist of a single 'throw' statement."},
259
260
An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type: {code: 2356,category: DiagnosticCategory.Error,key: "An arithmetic operand must be of type 'any', 'number' or an enum type."},
tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck11.ts(3,6): error TS2322: Type 'string | number' is not assignable to type 'string'.
1
+
tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck11.ts(3,6): error TS2322: Type 'number | string' is not assignable to type 'string'.
tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck9.ts(2,15): error TS2461: Type 'number | symbol | string[]' is not an array type.
1
+
tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck9.ts(2,15): error TS2461: Type 'string[] | number | symbol' is not an array type.
0 commit comments