Skip to content

Commit 648a795

Browse files
Update LKG.
1 parent 0098cf7 commit 648a795

14 files changed

+12737
-6514
lines changed

lib/enu/diagnosticMessages.generated.json.lcg

Lines changed: 80 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,18 @@
2727
</Str>
2828
<Disp Icon="Str" />
2929
</Item>
30+
<Item ItemId=";A_bigint_literal_cannot_use_exponential_notation_1352" ItemType="0" PsrId="306" Leaf="true">
31+
<Str Cat="Text">
32+
<Val><![CDATA[A bigint literal cannot use exponential notation.]]></Val>
33+
</Str>
34+
<Disp Icon="Str" />
35+
</Item>
36+
<Item ItemId=";A_bigint_literal_must_be_an_integer_1353" ItemType="0" PsrId="306" Leaf="true">
37+
<Str Cat="Text">
38+
<Val><![CDATA[A bigint literal must be an integer.]]></Val>
39+
</Str>
40+
<Disp Icon="Str" />
41+
</Item>
3042
<Item ItemId=";A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463" ItemType="0" PsrId="306" Leaf="true">
3143
<Str Cat="Text">
3244
<Val><![CDATA[A binding pattern parameter cannot be optional in an implementation signature.]]></Val>
@@ -1005,6 +1017,12 @@
10051017
</Str>
10061018
<Disp Icon="Str" />
10071019
</Item>
1020+
<Item ItemId=";An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351" ItemType="0" PsrId="306" Leaf="true">
1021+
<Str Cat="Text">
1022+
<Val><![CDATA[An identifier or keyword cannot immediately follow a numeric literal.]]></Val>
1023+
</Str>
1024+
<Disp Icon="Str" />
1025+
</Item>
10081026
<Item ItemId=";An_implementation_cannot_be_declared_in_ambient_contexts_1183" ItemType="0" PsrId="306" Leaf="true">
10091027
<Str Cat="Text">
10101028
<Val><![CDATA[An implementation cannot be declared in ambient contexts.]]></Val>
@@ -2403,6 +2421,12 @@
24032421
</Str>
24042422
<Disp Icon="Str" />
24052423
</Item>
2424+
<Item ItemId=";Enable_the_experimentalDecorators_option_in_your_configuration_file_95074" ItemType="0" PsrId="306" Leaf="true">
2425+
<Str Cat="Text">
2426+
<Val><![CDATA[Enable the 'experimentalDecorators' option in your configuration file]]></Val>
2427+
</Str>
2428+
<Disp Icon="Str" />
2429+
</Item>
24062430
<Item ItemId=";Enable_tracing_of_the_name_resolution_process_6085" ItemType="0" PsrId="306" Leaf="true">
24072431
<Str Cat="Text">
24082432
<Val><![CDATA[Enable tracing of the name resolution process.]]></Val>
@@ -3189,12 +3213,6 @@
31893213
</Str>
31903214
<Disp Icon="Str" />
31913215
</Item>
3192-
<Item ItemId=";In_const_enum_declarations_member_initializer_must_be_constant_expression_2474" ItemType="0" PsrId="306" Leaf="true">
3193-
<Str Cat="Text">
3194-
<Val><![CDATA[In 'const' enum declarations member initializer must be constant expression.]]></Val>
3195-
</Str>
3196-
<Disp Icon="Str" />
3197-
</Item>
31983216
<Item ItemId=";Include_modules_imported_with_json_extension_6197" ItemType="0" PsrId="306" Leaf="true">
31993217
<Str Cat="Text">
32003218
<Val><![CDATA[Include modules imported with '.json' extension]]></Val>
@@ -3741,12 +3759,6 @@
37413759
</Str>
37423760
<Disp Icon="Str" />
37433761
</Item>
3744-
<Item ItemId=";Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct_2497" ItemType="0" PsrId="306" Leaf="true">
3745-
<Str Cat="Text">
3746-
<Val><![CDATA[Module '{0}' resolves to a non-module entity and cannot be imported using this construct.]]></Val>
3747-
</Str>
3748-
<Disp Icon="Str" />
3749-
</Item>
37503762
<Item ItemId=";Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498" ItemType="0" PsrId="306" Leaf="true">
37513763
<Str Cat="Text">
37523764
<Val><![CDATA[Module '{0}' uses 'export =' and cannot be used with 'export *'.]]></Val>
@@ -3867,6 +3879,12 @@
38673879
</Str>
38683880
<Disp Icon="Str" />
38693881
</Item>
3882+
<Item ItemId=";No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743" ItemType="0" PsrId="306" Leaf="true">
3883+
<Str Cat="Text">
3884+
<Val><![CDATA[No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments.]]></Val>
3885+
</Str>
3886+
<Disp Icon="Str" />
3887+
</Item>
38703888
<Item ItemId=";Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515" ItemType="0" PsrId="306" Leaf="true">
38713889
<Str Cat="Text">
38723890
<Val><![CDATA[Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'.]]></Val>
@@ -4773,6 +4791,12 @@
47734791
</Str>
47744792
<Disp Icon="Str" />
47754793
</Item>
4794+
<Item ItemId=";Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032" ItemType="0" PsrId="306" Leaf="true">
4795+
<Str Cat="Text">
4796+
<Val><![CDATA[Qualified name '{0}' is not allowed without a leading '@param {object} {1}'.]]></Val>
4797+
</Str>
4798+
<Disp Icon="Str" />
4799+
</Item>
47764800
<Item ItemId=";Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052" ItemType="0" PsrId="306" Leaf="true">
47774801
<Str Cat="Text">
47784802
<Val><![CDATA[Raise error on expressions and declarations with an implied 'any' type.]]></Val>
@@ -5805,6 +5829,18 @@
58055829
</Str>
58065830
<Disp Icon="Str" />
58075831
</Item>
5832+
<Item ItemId=";This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746" ItemType="0" PsrId="306" Leaf="true">
5833+
<Str Cat="Text">
5834+
<Val><![CDATA[This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided.]]></Val>
5835+
</Str>
5836+
<Disp Icon="Str" />
5837+
</Item>
5838+
<Item ItemId=";This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745" ItemType="0" PsrId="306" Leaf="true">
5839+
<Str Cat="Text">
5840+
<Val><![CDATA[This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided.]]></Val>
5841+
</Str>
5842+
<Disp Icon="Str" />
5843+
</Item>
58085844
<Item ItemId=";This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap_2367" ItemType="0" PsrId="306" Leaf="true">
58095845
<Str Cat="Text">
58105846
<Val><![CDATA[This condition will always return '{0}' since the types '{1}' and '{2}' have no overlap.]]></Val>
@@ -5823,6 +5859,12 @@
58235859
</Str>
58245860
<Disp Icon="Str" />
58255861
</Item>
5862+
<Item ItemId=";This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497" ItemType="0" PsrId="306" Leaf="true">
5863+
<Str Cat="Text">
5864+
<Val><![CDATA[This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export.]]></Val>
5865+
</Str>
5866+
<Disp Icon="Str" />
5867+
</Item>
58265868
<Item ItemId=";This_parameter_is_not_allowed_with_use_strict_directive_1346" ItemType="0" PsrId="306" Leaf="true">
58275869
<Str Cat="Text">
58285870
<Val><![CDATA[This parameter is not allowed with 'use strict' directive.]]></Val>
@@ -5871,9 +5913,9 @@
58715913
</Str>
58725914
<Disp Icon="Str" />
58735915
</Item>
5874-
<Item ItemId=";Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2_2493" ItemType="0" PsrId="306" Leaf="true">
5916+
<Item ItemId=";Tuple_type_0_of_length_1_has_no_element_at_index_2_2493" ItemType="0" PsrId="306" Leaf="true">
58755917
<Str Cat="Text">
5876-
<Val><![CDATA[Tuple type '{0}' with length '{1}' cannot be assigned to tuple with length '{2}'.]]></Val>
5918+
<Val><![CDATA[Tuple type '{0}' of length '{1}' has no element at index '{2}'.]]></Val>
58775919
</Str>
58785920
<Disp Icon="Str" />
58795921
</Item>
@@ -5907,18 +5949,6 @@
59075949
</Str>
59085950
<Disp Icon="Str" />
59095951
</Item>
5910-
<Item ItemId=";Type_0_has_no_property_1_2460" ItemType="0" PsrId="306" Leaf="true">
5911-
<Str Cat="Text">
5912-
<Val><![CDATA[Type '{0}' has no property '{1}'.]]></Val>
5913-
</Str>
5914-
<Disp Icon="Str" />
5915-
</Item>
5916-
<Item ItemId=";Type_0_has_no_property_1_and_no_string_index_signature_2459" ItemType="0" PsrId="306" Leaf="true">
5917-
<Str Cat="Text">
5918-
<Val><![CDATA[Type '{0}' has no property '{1}' and no string index signature.]]></Val>
5919-
</Str>
5920-
<Disp Icon="Str" />
5921-
</Item>
59225952
<Item ItemId=";Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739" ItemType="0" PsrId="306" Leaf="true">
59235953
<Str Cat="Text">
59245954
<Val><![CDATA[Type '{0}' is missing the following properties from type '{1}': {2}]]></Val>
@@ -6189,6 +6219,12 @@
61896219
</Str>
61906220
<Disp Icon="Str" />
61916221
</Item>
6222+
<Item ItemId=";Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744" ItemType="0" PsrId="306" Leaf="true">
6223+
<Str Cat="Text">
6224+
<Val><![CDATA[Type parameter defaults can only reference previously declared type parameters.]]></Val>
6225+
</Str>
6226+
<Disp Icon="Str" />
6227+
</Item>
61926228
<Item ItemId=";Type_parameter_list_cannot_be_empty_1098" ItemType="0" PsrId="306" Leaf="true">
61936229
<Str Cat="Text">
61946230
<Val><![CDATA[Type parameter list cannot be empty.]]></Val>
@@ -6387,6 +6423,12 @@
63876423
</Str>
63886424
<Disp Icon="Str" />
63896425
</Item>
6426+
<Item ItemId=";Updating_unchanged_output_timestamps_of_project_0_6371" ItemType="0" PsrId="306" Leaf="true">
6427+
<Str Cat="Text">
6428+
<Val><![CDATA[Updating unchanged output timestamps of project '{0}'...]]></Val>
6429+
</Str>
6430+
<Disp Icon="Str" />
6431+
</Item>
63906432
<Item ItemId=";Use_synthetic_default_member_95016" ItemType="0" PsrId="306" Leaf="true">
63916433
<Str Cat="Text">
63926434
<Val><![CDATA[Use synthetic 'default' member.]]></Val>
@@ -6519,6 +6561,12 @@
65196561
</Str>
65206562
<Disp Icon="Str" />
65216563
</Item>
6564+
<Item ItemId=";_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747" ItemType="0" PsrId="306" Leaf="true">
6565+
<Str Cat="Text">
6566+
<Val><![CDATA['{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'.]]></Val>
6567+
</Str>
6568+
<Disp Icon="Str" />
6569+
</Item>
65226570
<Item ItemId=";_0_expected_1005" ItemType="0" PsrId="306" Leaf="true">
65236571
<Str Cat="Text">
65246572
<Val><![CDATA['{0}' expected.]]></Val>
@@ -6789,6 +6837,12 @@
67896837
</Str>
67906838
<Disp Icon="Str" />
67916839
</Item>
6840+
<Item ItemId=";const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474" ItemType="0" PsrId="306" Leaf="true">
6841+
<Str Cat="Text">
6842+
<Val><![CDATA[const enum member initializers can only contain literal values and other computed enum values.]]></Val>
6843+
</Str>
6844+
<Disp Icon="Str" />
6845+
</Item>
67926846
<Item ItemId=";const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475" ItemType="0" PsrId="306" Leaf="true">
67936847
<Str Cat="Text">
67946848
<Val><![CDATA['const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query.]]></Val>

lib/lib.es5.d.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,16 @@ interface FunctionConstructor {
315315

316316
declare const Function: FunctionConstructor;
317317

318+
/**
319+
* Extracts the type of the 'this' parameter of a function type, or 'unknown' if the function type has no 'this' parameter.
320+
*/
321+
type ThisParameterType<T> = T extends (this: unknown, ...args: any[]) => any ? unknown : T extends (this: infer U, ...args: any[]) => any ? U : unknown;
322+
323+
/**
324+
* Removes the 'this' parameter from a function type.
325+
*/
326+
type OmitThisParameter<T> = unknown extends ThisParameterType<T> ? T : T extends (...args: infer A) => infer R ? (...args: A) => R : T;
327+
318328
interface CallableFunction extends Function {
319329
/**
320330
* Calls the function with the specified object as the this value and the elements of specified array as the arguments.
@@ -337,7 +347,7 @@ interface CallableFunction extends Function {
337347
* @param thisArg The object to be used as the this object.
338348
* @param args Arguments to bind to the parameters of the function.
339349
*/
340-
bind<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T): (...args: A) => R;
350+
bind<T>(this: T, thisArg: ThisParameterType<T>): OmitThisParameter<T>;
341351
bind<T, A0, A extends any[], R>(this: (this: T, arg0: A0, ...args: A) => R, thisArg: T, arg0: A0): (...args: A) => R;
342352
bind<T, A0, A1, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1): (...args: A) => R;
343353
bind<T, A0, A1, A2, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2): (...args: A) => R;
@@ -367,7 +377,7 @@ interface NewableFunction extends Function {
367377
* @param thisArg The object to be used as the this object.
368378
* @param args Arguments to bind to the parameters of the function.
369379
*/
370-
bind<A extends any[], R>(this: new (...args: A) => R, thisArg: any): new (...args: A) => R;
380+
bind<T>(this: T, thisArg: any): T;
371381
bind<A0, A extends any[], R>(this: new (arg0: A0, ...args: A) => R, thisArg: any, arg0: A0): new (...args: A) => R;
372382
bind<A0, A1, A extends any[], R>(this: new (arg0: A0, arg1: A1, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1): new (...args: A) => R;
373383
bind<A0, A1, A2, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2): new (...args: A) => R;

lib/protocol.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2279,6 +2279,8 @@ declare namespace ts.server.protocol {
22792279
readonly importModuleSpecifierPreference?: "relative" | "non-relative";
22802280
readonly allowTextChangesInNewFiles?: boolean;
22812281
readonly lazyConfiguredProjectsFromExternalProject?: boolean;
2282+
readonly allowRenameOfImportPath?: boolean;
2283+
readonly providePrefixAndSuffixTextForRename?: boolean;
22822284
}
22832285
interface CompilerOptions {
22842286
allowJs?: boolean;

lib/tr/diagnosticMessages.generated.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@
847847
"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496": "ES3 ve ES5'te bulunan bir ok işlevinde 'arguments' nesnesine başvuru yapılamaz. Standart bir işlev ifadesi kullanmayı göz önünde bulundurun.",
848848
"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522": "ES3 ve ES5'te 'arguments' nesnesine zaman uyumsuz bir işlev veya metot içinde başvurulamaz. Standart bir işlev veya metot kullanmayı düşünün.",
849849
"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313": "'if' deyiminin gövdesi boş deyim olamaz.",
850-
"The_character_set_of_the_input_files_6163": "Girdi dosyalarının karakter kümesi.",
850+
"The_character_set_of_the_input_files_6163": "Giriş dosyalarının karakter kümesi.",
851851
"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563": "İçeren işlev veya modül gövdesi, denetim akışı analizi için çok büyük.",
852852
"The_current_host_does_not_support_the_0_option_5001": "Mevcut ana bilgisayar '{0}' seçeneğini desteklemiyor.",
853853
"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714": "Bir dışarı aktarma ataması ifadesi, çevresel bağlamda bir tanımlayıcı veya tam ad olmalıdır.",

0 commit comments

Comments
 (0)