Skip to content

Commit 76c94c5

Browse files
Update LKG.
1 parent a385ad7 commit 76c94c5

12 files changed

+2223
-1018
lines changed

lib/enu/diagnosticMessages.generated.json.lcg

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2253,12 +2253,6 @@
22532253
</Str>
22542254
<Disp Icon="Str" />
22552255
</Item>
2256-
<Item ItemId=";Duplicate_declaration_0_2718" ItemType="0" PsrId="306" Leaf="true">
2257-
<Str Cat="Text">
2258-
<Val><![CDATA[Duplicate declaration '{0}'.]]></Val>
2259-
</Str>
2260-
<Disp Icon="Str" />
2261-
</Item>
22622256
<Item ItemId=";Duplicate_function_implementation_2393" ItemType="0" PsrId="306" Leaf="true">
22632257
<Str Cat="Text">
22642258
<Val><![CDATA[Duplicate function implementation.]]></Val>
@@ -2325,6 +2319,12 @@
23252319
</Str>
23262320
<Disp Icon="Str" />
23272321
</Item>
2322+
<Item ItemId=";Duplicate_property_0_2718" ItemType="0" PsrId="306" Leaf="true">
2323+
<Str Cat="Text">
2324+
<Val><![CDATA[Duplicate property '{0}'.]]></Val>
2325+
</Str>
2326+
<Disp Icon="Str" />
2327+
</Item>
23282328
<Item ItemId=";Duplicate_string_index_signature_2374" ItemType="0" PsrId="306" Leaf="true">
23292329
<Str Cat="Text">
23302330
<Val><![CDATA[Duplicate string index signature.]]></Val>
@@ -4689,6 +4689,12 @@
46894689
</Str>
46904690
<Disp Icon="Str" />
46914691
</Item>
4692+
<Item ItemId=";Property_0_was_also_declared_here_2733" ItemType="0" PsrId="306" Leaf="true">
4693+
<Str Cat="Text">
4694+
<Val><![CDATA[Property '{0}' was also declared here.]]></Val>
4695+
</Str>
4696+
<Disp Icon="Str" />
4697+
</Item>
46924698
<Item ItemId=";Property_assignment_expected_1136" ItemType="0" PsrId="306" Leaf="true">
46934699
<Str Cat="Text">
46944700
<Val><![CDATA[Property assignment expected.]]></Val>
@@ -5979,12 +5985,6 @@
59795985
</Str>
59805986
<Disp Icon="Str" />
59815987
</Item>
5982-
<Item ItemId=";Type_0_is_not_an_array_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators_2568" ItemType="0" PsrId="306" Leaf="true">
5983-
<Str Cat="Text">
5984-
<Val><![CDATA[Type '{0}' is not an array type. Use compiler option '--downlevelIteration' to allow iterating of iterators.]]></Val>
5985-
</Str>
5986-
<Disp Icon="Str" />
5987-
</Item>
59885988
<Item ItemId=";Type_0_is_not_an_array_type_or_a_string_type_2495" ItemType="0" PsrId="306" Leaf="true">
59895989
<Str Cat="Text">
59905990
<Val><![CDATA[Type '{0}' is not an array type or a string type.]]></Val>

lib/lib.es5.d.ts

Lines changed: 64 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ interface TemplateStringsArray extends ReadonlyArray<string> {
607607

608608
/**
609609
* The type of `import.meta`.
610-
*
610+
*
611611
* If you need to declare that a given property exists on `import.meta`,
612612
* this type may be augmented via interface merging.
613613
*/
@@ -1933,13 +1933,19 @@ interface Int8ArrayConstructor {
19331933
*/
19341934
of(...items: number[]): Int8Array;
19351935

1936+
/**
1937+
* Creates an array from an array-like or iterable object.
1938+
* @param arrayLike An array-like or iterable object to convert to an array.
1939+
*/
1940+
from(arrayLike: ArrayLike<number>): Int8Array;
1941+
19361942
/**
19371943
* Creates an array from an array-like or iterable object.
19381944
* @param arrayLike An array-like or iterable object to convert to an array.
19391945
* @param mapfn A mapping function to call on every element of the array.
19401946
* @param thisArg Value of 'this' used to invoke the mapfn.
19411947
*/
1942-
from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;
1948+
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array;
19431949

19441950

19451951
}
@@ -2203,13 +2209,19 @@ interface Uint8ArrayConstructor {
22032209
*/
22042210
of(...items: number[]): Uint8Array;
22052211

2212+
/**
2213+
* Creates an array from an array-like or iterable object.
2214+
* @param arrayLike An array-like or iterable object to convert to an array.
2215+
*/
2216+
from(arrayLike: ArrayLike<number>): Uint8Array;
2217+
22062218
/**
22072219
* Creates an array from an array-like or iterable object.
22082220
* @param arrayLike An array-like or iterable object to convert to an array.
22092221
* @param mapfn A mapping function to call on every element of the array.
22102222
* @param thisArg Value of 'this' used to invoke the mapfn.
22112223
*/
2212-
from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;
2224+
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array;
22132225

22142226
}
22152227
declare const Uint8Array: Uint8ArrayConstructor;
@@ -2472,13 +2484,19 @@ interface Uint8ClampedArrayConstructor {
24722484
*/
24732485
of(...items: number[]): Uint8ClampedArray;
24742486

2487+
/**
2488+
* Creates an array from an array-like or iterable object.
2489+
* @param arrayLike An array-like or iterable object to convert to an array.
2490+
*/
2491+
from(arrayLike: ArrayLike<number>): Uint8ClampedArray;
2492+
24752493
/**
24762494
* Creates an array from an array-like or iterable object.
24772495
* @param arrayLike An array-like or iterable object to convert to an array.
24782496
* @param mapfn A mapping function to call on every element of the array.
24792497
* @param thisArg Value of 'this' used to invoke the mapfn.
24802498
*/
2481-
from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;
2499+
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray;
24822500
}
24832501
declare const Uint8ClampedArray: Uint8ClampedArrayConstructor;
24842502

@@ -2739,13 +2757,19 @@ interface Int16ArrayConstructor {
27392757
*/
27402758
of(...items: number[]): Int16Array;
27412759

2760+
/**
2761+
* Creates an array from an array-like or iterable object.
2762+
* @param arrayLike An array-like or iterable object to convert to an array.
2763+
*/
2764+
from(arrayLike: ArrayLike<number>): Int16Array;
2765+
27422766
/**
27432767
* Creates an array from an array-like or iterable object.
27442768
* @param arrayLike An array-like or iterable object to convert to an array.
27452769
* @param mapfn A mapping function to call on every element of the array.
27462770
* @param thisArg Value of 'this' used to invoke the mapfn.
27472771
*/
2748-
from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;
2772+
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array;
27492773

27502774

27512775
}
@@ -3009,13 +3033,19 @@ interface Uint16ArrayConstructor {
30093033
*/
30103034
of(...items: number[]): Uint16Array;
30113035

3036+
/**
3037+
* Creates an array from an array-like or iterable object.
3038+
* @param arrayLike An array-like or iterable object to convert to an array.
3039+
*/
3040+
from(arrayLike: ArrayLike<number>): Uint16Array;
3041+
30123042
/**
30133043
* Creates an array from an array-like or iterable object.
30143044
* @param arrayLike An array-like or iterable object to convert to an array.
30153045
* @param mapfn A mapping function to call on every element of the array.
30163046
* @param thisArg Value of 'this' used to invoke the mapfn.
30173047
*/
3018-
from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;
3048+
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array;
30193049

30203050

30213051
}
@@ -3278,13 +3308,19 @@ interface Int32ArrayConstructor {
32783308
*/
32793309
of(...items: number[]): Int32Array;
32803310

3311+
/**
3312+
* Creates an array from an array-like or iterable object.
3313+
* @param arrayLike An array-like or iterable object to convert to an array.
3314+
*/
3315+
from(arrayLike: ArrayLike<number>): Int32Array;
3316+
32813317
/**
32823318
* Creates an array from an array-like or iterable object.
32833319
* @param arrayLike An array-like or iterable object to convert to an array.
32843320
* @param mapfn A mapping function to call on every element of the array.
32853321
* @param thisArg Value of 'this' used to invoke the mapfn.
32863322
*/
3287-
from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;
3323+
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array;
32883324

32893325
}
32903326
declare const Int32Array: Int32ArrayConstructor;
@@ -3546,13 +3582,19 @@ interface Uint32ArrayConstructor {
35463582
*/
35473583
of(...items: number[]): Uint32Array;
35483584

3585+
/**
3586+
* Creates an array from an array-like or iterable object.
3587+
* @param arrayLike An array-like or iterable object to convert to an array.
3588+
*/
3589+
from(arrayLike: ArrayLike<number>): Uint32Array;
3590+
35493591
/**
35503592
* Creates an array from an array-like or iterable object.
35513593
* @param arrayLike An array-like or iterable object to convert to an array.
35523594
* @param mapfn A mapping function to call on every element of the array.
35533595
* @param thisArg Value of 'this' used to invoke the mapfn.
35543596
*/
3555-
from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;
3597+
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array;
35563598

35573599
}
35583600
declare const Uint32Array: Uint32ArrayConstructor;
@@ -3815,13 +3857,19 @@ interface Float32ArrayConstructor {
38153857
*/
38163858
of(...items: number[]): Float32Array;
38173859

3860+
/**
3861+
* Creates an array from an array-like or iterable object.
3862+
* @param arrayLike An array-like or iterable object to convert to an array.
3863+
*/
3864+
from(arrayLike: ArrayLike<number>): Float32Array;
3865+
38183866
/**
38193867
* Creates an array from an array-like or iterable object.
38203868
* @param arrayLike An array-like or iterable object to convert to an array.
38213869
* @param mapfn A mapping function to call on every element of the array.
38223870
* @param thisArg Value of 'this' used to invoke the mapfn.
38233871
*/
3824-
from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;
3872+
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array;
38253873

38263874

38273875
}
@@ -4085,13 +4133,19 @@ interface Float64ArrayConstructor {
40854133
*/
40864134
of(...items: number[]): Float64Array;
40874135

4136+
/**
4137+
* Creates an array from an array-like or iterable object.
4138+
* @param arrayLike An array-like or iterable object to convert to an array.
4139+
*/
4140+
from(arrayLike: ArrayLike<number>): Float64Array;
4141+
40884142
/**
40894143
* Creates an array from an array-like or iterable object.
40904144
* @param arrayLike An array-like or iterable object to convert to an array.
40914145
* @param mapfn A mapping function to call on every element of the array.
40924146
* @param thisArg Value of 'this' used to invoke the mapfn.
40934147
*/
4094-
from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;
4148+
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array;
40954149

40964150
}
40974151
declare const Float64Array: Float64ArrayConstructor;

lib/protocol.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2279,8 +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;
22832282
readonly providePrefixAndSuffixTextForRename?: boolean;
2283+
readonly allowRenameOfImportPath?: boolean;
22842284
}
22852285
interface CompilerOptions {
22862286
allowJs?: boolean;

0 commit comments

Comments
 (0)