Skip to content

Commit abf4b63

Browse files
Update LKG
1 parent 8d249ea commit abf4b63

27 files changed

+50141
-43274
lines changed

lib/cs/diagnosticMessages.generated.json

Lines changed: 20 additions & 11 deletions
Large diffs are not rendered by default.

lib/de/diagnosticMessages.generated.json

Lines changed: 20 additions & 11 deletions
Large diffs are not rendered by default.

lib/es/diagnosticMessages.generated.json

Lines changed: 24 additions & 15 deletions
Large diffs are not rendered by default.

lib/fr/diagnosticMessages.generated.json

Lines changed: 22 additions & 13 deletions
Large diffs are not rendered by default.

lib/it/diagnosticMessages.generated.json

Lines changed: 20 additions & 11 deletions
Large diffs are not rendered by default.

lib/ja/diagnosticMessages.generated.json

Lines changed: 24 additions & 15 deletions
Large diffs are not rendered by default.

lib/ko/diagnosticMessages.generated.json

Lines changed: 20 additions & 11 deletions
Large diffs are not rendered by default.

lib/lib.es2017.sharedmemory.d.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ interface SharedArrayBuffer {
2727
*/
2828
readonly byteLength: number;
2929

30-
/*
31-
* The SharedArrayBuffer constructor's length property whose value is 1.
32-
*/
33-
length: number;
3430
/**
3531
* Returns a section of an SharedArrayBuffer.
3632
*/

lib/lib.es5.d.ts

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ interface JSON {
10671067
/**
10681068
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
10691069
* @param value A JavaScript value, usually an object or array, to be converted.
1070-
* @param replacer An array of strings and numbers that acts as a approved list for selecting the object properties that will be stringified.
1070+
* @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.
10711071
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
10721072
*/
10731073
stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
@@ -1528,6 +1528,26 @@ type ReturnType<T extends (...args: any) => any> = T extends (...args: any) => i
15281528
*/
15291529
type InstanceType<T extends new (...args: any) => any> = T extends new (...args: any) => infer R ? R : any;
15301530

1531+
/**
1532+
* Convert string literal type to uppercase
1533+
*/
1534+
type Uppercase<S extends string> = intrinsic;
1535+
1536+
/**
1537+
* Convert string literal type to lowercase
1538+
*/
1539+
type Lowercase<S extends string> = intrinsic;
1540+
1541+
/**
1542+
* Convert first character of string literal type to uppercase
1543+
*/
1544+
type Capitalize<S extends string> = intrinsic;
1545+
1546+
/**
1547+
* Convert first character of string literal type to lowercase
1548+
*/
1549+
type Uncapitalize<S extends string> = intrinsic;
1550+
15311551
/**
15321552
* Marker for contextual 'this' type
15331553
*/
@@ -4284,6 +4304,7 @@ declare namespace Intl {
42844304
style?: string;
42854305
currency?: string;
42864306
currencyDisplay?: string;
4307+
currencySign?: string;
42874308
useGrouping?: boolean;
42884309
minimumIntegerDigits?: number;
42894310
minimumFractionDigits?: number;

lib/lib.esnext.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ and limitations under the License.
2222
/// <reference lib="esnext.intl" />
2323
/// <reference lib="esnext.string" />
2424
/// <reference lib="esnext.promise" />
25+
/// <reference lib="esnext.weakref" />

lib/lib.esnext.weakref.d.ts

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
/*! *****************************************************************************
2+
Copyright (c) Microsoft Corporation. All rights reserved.
3+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4+
this file except in compliance with the License. You may obtain a copy of the
5+
License at http://www.apache.org/licenses/LICENSE-2.0
6+
7+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10+
MERCHANTABLITY OR NON-INFRINGEMENT.
11+
12+
See the Apache Version 2.0 License for specific language governing permissions
13+
and limitations under the License.
14+
***************************************************************************** */
15+
16+
17+
18+
/// <reference no-default-lib="true"/>
19+
20+
21+
interface WeakRef<T extends object> {
22+
readonly [Symbol.toStringTag]: "WeakRef";
23+
24+
/**
25+
* Returns the WeakRef instance's target object, or undefined if the target object has been
26+
* reclaimed.
27+
*/
28+
deref(): T | undefined;
29+
}
30+
31+
interface WeakRefConstructor {
32+
readonly prototype: WeakRef<any>;
33+
34+
/**
35+
* Creates a WeakRef instance for the given target object.
36+
* @param target The target object for the WeakRef instance.
37+
*/
38+
new<T extends object>(target?: T): WeakRef<T>;
39+
}
40+
41+
declare var WeakRef: WeakRefConstructor;
42+
43+
interface FinalizationRegistry {
44+
readonly [Symbol.toStringTag]: "FinalizationRegistry";
45+
46+
/**
47+
* Registers an object with the registry.
48+
* @param target The target object to register.
49+
* @param heldValue The value to pass to the finalizer for this object. This cannot be the
50+
* target object.
51+
* @param unregisterToken The token to pass to the unregister method to unregister the target
52+
* object. If provided (and not undefined), this must be an object. If not provided, the target
53+
* cannot be unregistered.
54+
*/
55+
register(target: object, heldValue: any, unregisterToken?: object): void;
56+
57+
/**
58+
* Unregisters an object from the registry.
59+
* @param unregisterToken The token that was used as the unregisterToken argument when calling
60+
* register to register the target object.
61+
*/
62+
unregister(unregisterToken: object): void;
63+
}
64+
65+
interface FinalizationRegistryConstructor {
66+
readonly prototype: FinalizationRegistry;
67+
68+
/**
69+
* Creates a finalization registry with an associated cleanup callback
70+
* @param cleanupCallback The callback to call after an object in the registry has been reclaimed.
71+
*/
72+
new(cleanupCallback: (heldValue: any) => void): FinalizationRegistry;
73+
}
74+
75+
declare var FinalizationRegistry: FinalizationRegistryConstructor;

0 commit comments

Comments
 (0)