Skip to content

Commit 109e7c3

Browse files
committed
Merge branch 'master' into static_index
2 parents efeaf94 + b34e680 commit 109e7c3

File tree

580 files changed

+122513
-75596
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

580 files changed

+122513
-75596
lines changed

lib/cs/diagnosticMessages.generated.json

Lines changed: 75 additions & 18 deletions
Large diffs are not rendered by default.

lib/de/diagnosticMessages.generated.json

Lines changed: 75 additions & 18 deletions
Large diffs are not rendered by default.

lib/es/diagnosticMessages.generated.json

Lines changed: 76 additions & 19 deletions
Large diffs are not rendered by default.

lib/fr/diagnosticMessages.generated.json

Lines changed: 84 additions & 27 deletions
Large diffs are not rendered by default.

lib/it/diagnosticMessages.generated.json

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

lib/ja/diagnosticMessages.generated.json

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

lib/ko/diagnosticMessages.generated.json

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

lib/lib.dom.d.ts

Lines changed: 356 additions & 216 deletions
Large diffs are not rendered by default.

lib/lib.dom.iterable.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,13 @@ interface Headers {
129129
values(): IterableIterator<string>;
130130
}
131131

132+
interface IDBDatabase {
133+
/**
134+
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
135+
*/
136+
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction;
137+
}
138+
132139
interface IDBObjectStore {
133140
/**
134141
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.

lib/lib.es2015.iterable.d.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ interface Set<T> {
174174
*/
175175
entries(): IterableIterator<[T, T]>;
176176
/**
177-
* Despite its name, returns an iterable of the values in the set,
177+
* Despite its name, returns an iterable of the values in the set.
178178
*/
179179
keys(): IterableIterator<T>;
180180

@@ -194,7 +194,7 @@ interface ReadonlySet<T> {
194194
entries(): IterableIterator<[T, T]>;
195195

196196
/**
197-
* Despite its name, returns an iterable of the values in the set,
197+
* Despite its name, returns an iterable of the values in the set.
198198
*/
199199
keys(): IterableIterator<T>;
200200

@@ -242,10 +242,6 @@ interface PromiseConstructor {
242242
race<T>(values: Iterable<T | PromiseLike<T>>): Promise<T>;
243243
}
244244

245-
declare namespace Reflect {
246-
function enumerate(target: object): IterableIterator<any>;
247-
}
248-
249245
interface String {
250246
/** Iterator */
251247
[Symbol.iterator](): IterableIterator<string>;

lib/lib.es2015.promise.d.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ interface PromiseConstructor {
3030
* a resolve callback used to resolve the promise with a value or the result of another promise,
3131
* and a reject callback used to reject the promise with a provided reason or error.
3232
*/
33-
new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
33+
new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
3434

3535
/**
3636
* Creates a Promise that is resolved with an array of results when all of the provided Promises
@@ -133,18 +133,18 @@ interface PromiseConstructor {
133133
*/
134134
reject<T = never>(reason?: any): Promise<T>;
135135

136+
/**
137+
* Creates a new resolved promise.
138+
* @returns A resolved promise.
139+
*/
140+
resolve(): Promise<void>;
141+
136142
/**
137143
* Creates a new resolved promise for the provided value.
138144
* @param value A promise.
139145
* @returns A promise whose internal state matches the provided promise.
140146
*/
141147
resolve<T>(value: T | PromiseLike<T>): Promise<T>;
142-
143-
/**
144-
* Creates a new resolved promise .
145-
* @returns A resolved promise.
146-
*/
147-
resolve(): Promise<void>;
148148
}
149149

150150
declare var Promise: PromiseConstructor;

lib/lib.es2015.proxy.d.ts

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,19 @@ and limitations under the License.
1919

2020

2121
interface ProxyHandler<T extends object> {
22-
getPrototypeOf? (target: T): object | null;
23-
setPrototypeOf? (target: T, v: any): boolean;
24-
isExtensible? (target: T): boolean;
25-
preventExtensions? (target: T): boolean;
26-
getOwnPropertyDescriptor? (target: T, p: PropertyKey): PropertyDescriptor | undefined;
27-
has? (target: T, p: PropertyKey): boolean;
28-
get? (target: T, p: PropertyKey, receiver: any): any;
29-
set? (target: T, p: PropertyKey, value: any, receiver: any): boolean;
30-
deleteProperty? (target: T, p: PropertyKey): boolean;
31-
defineProperty? (target: T, p: PropertyKey, attributes: PropertyDescriptor): boolean;
32-
enumerate? (target: T): PropertyKey[];
33-
ownKeys? (target: T): PropertyKey[];
34-
apply? (target: T, thisArg: any, argArray?: any): any;
35-
construct? (target: T, argArray: any, newTarget?: any): object;
22+
apply?(target: T, thisArg: any, argArray: any[]): any;
23+
construct?(target: T, argArray: any[], newTarget: Function): object;
24+
defineProperty?(target: T, p: string | symbol, attributes: PropertyDescriptor): boolean;
25+
deleteProperty?(target: T, p: string | symbol): boolean;
26+
get?(target: T, p: string | symbol, receiver: any): any;
27+
getOwnPropertyDescriptor?(target: T, p: string | symbol): PropertyDescriptor | undefined;
28+
getPrototypeOf?(target: T): object | null;
29+
has?(target: T, p: string | symbol): boolean;
30+
isExtensible?(target: T): boolean;
31+
ownKeys?(target: T): ArrayLike<string | symbol>;
32+
preventExtensions?(target: T): boolean;
33+
set?(target: T, p: string | symbol, value: any, receiver: any): boolean;
34+
setPrototypeOf?(target: T, v: object | null): boolean;
3635
}
3736

3837
interface ProxyConstructor {

lib/lib.es2015.reflect.d.ts

Lines changed: 92 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,105 @@ and limitations under the License.
1919

2020

2121
declare namespace Reflect {
22+
/**
23+
* Calls the function with the specified object as the this value
24+
* and the elements of specified array as the arguments.
25+
* @param target The function to call.
26+
* @param thisArgument The object to be used as the this object.
27+
* @param argumentsList An array of argument values to be passed to the function.
28+
*/
2229
function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;
23-
function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: any): any;
30+
31+
/**
32+
* Constructs the target with the elements of specified array as the arguments
33+
* and the specified constructor as the `new.target` value.
34+
* @param target The constructor to invoke.
35+
* @param argumentsList An array of argument values to be passed to the constructor.
36+
* @param newTarget The constructor to be used as the `new.target` object.
37+
*/
38+
function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: Function): any;
39+
40+
/**
41+
* Adds a property to an object, or modifies attributes of an existing property.
42+
* @param target Object on which to add or modify the property. This can be a native JavaScript object
43+
* (that is, a user-defined object or a built in object) or a DOM object.
44+
* @param propertyKey The property name.
45+
* @param attributes Descriptor for the property. It can be for a data property or an accessor property.
46+
*/
2447
function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean;
48+
49+
/**
50+
* Removes a property from an object, equivalent to `delete target[propertyKey]`,
51+
* except it won't throw if `target[propertyKey]` is non-configurable.
52+
* @param target Object from which to remove the own property.
53+
* @param propertyKey The property name.
54+
*/
2555
function deleteProperty(target: object, propertyKey: PropertyKey): boolean;
56+
57+
/**
58+
* Gets the property of target, equivalent to `target[propertyKey]` when `receiver === target`.
59+
* @param target Object that contains the property on itself or in its prototype chain.
60+
* @param propertyKey The property name.
61+
* @param receiver The reference to use as the `this` value in the getter function,
62+
* if `target[propertyKey]` is an accessor property.
63+
*/
2664
function get(target: object, propertyKey: PropertyKey, receiver?: any): any;
65+
66+
/**
67+
* Gets the own property descriptor of the specified object.
68+
* An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
69+
* @param target Object that contains the property.
70+
* @param propertyKey The property name.
71+
*/
2772
function getOwnPropertyDescriptor(target: object, propertyKey: PropertyKey): PropertyDescriptor | undefined;
28-
function getPrototypeOf(target: object): object;
73+
74+
/**
75+
* Returns the prototype of an object.
76+
* @param target The object that references the prototype.
77+
*/
78+
function getPrototypeOf(target: object): object | null;
79+
80+
/**
81+
* Equivalent to `propertyKey in target`.
82+
* @param target Object that contains the property on itself or in its prototype chain.
83+
* @param propertyKey Name of the property.
84+
*/
2985
function has(target: object, propertyKey: PropertyKey): boolean;
86+
87+
/**
88+
* Returns a value that indicates whether new properties can be added to an object.
89+
* @param target Object to test.
90+
*/
3091
function isExtensible(target: object): boolean;
31-
function ownKeys(target: object): PropertyKey[];
92+
93+
/**
94+
* Returns the string and symbol keys of the own properties of an object. The own properties of an object
95+
* are those that are defined directly on that object, and are not inherited from the object's prototype.
96+
* @param target Object that contains the own properties.
97+
*/
98+
function ownKeys(target: object): (string | symbol)[];
99+
100+
/**
101+
* Prevents the addition of new properties to an object.
102+
* @param target Object to make non-extensible.
103+
* @return Whether the object has been made non-extensible.
104+
*/
32105
function preventExtensions(target: object): boolean;
106+
107+
/**
108+
* Sets the property of target, equivalent to `target[propertyKey] = value` when `receiver === target`.
109+
* @param target Object that contains the property on itself or in its prototype chain.
110+
* @param propertyKey Name of the property.
111+
* @param receiver The reference to use as the `this` value in the setter function,
112+
* if `target[propertyKey]` is an accessor property.
113+
*/
33114
function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean;
34-
function setPrototypeOf(target: object, proto: any): boolean;
115+
116+
/**
117+
* Sets the prototype of a specified object o to object proto or null.
118+
* @param target The object to change its prototype.
119+
* @param proto The value of the new prototype or null.
120+
* @return Whether setting the prototype was successful.
121+
*/
122+
function setPrototypeOf(target: object, proto: object | null): boolean;
35123
}

lib/lib.es2015.symbol.wellknown.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ interface SymbolConstructor {
8383
}
8484

8585
interface Symbol {
86+
/**
87+
* Converts a Symbol object to a symbol.
88+
*/
89+
[Symbol.toPrimitive](hint: string): symbol;
90+
8691
readonly [Symbol.toStringTag]: string;
8792
}
8893

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.es2020.bigint.d.ts

Lines changed: 94 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,92 @@ and limitations under the License.
1818
/// <reference no-default-lib="true"/>
1919

2020

21+
interface BigIntToLocaleStringOptions {
22+
/**
23+
* The locale matching algorithm to use.The default is "best fit". For information about this option, see the {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}.
24+
*/
25+
localeMatcher?: string;
26+
/**
27+
* The formatting style to use , the default is "decimal".
28+
*/
29+
style?: string;
30+
31+
numberingSystem?: string;
32+
/**
33+
* The unit to use in unit formatting, Possible values are core unit identifiers, defined in UTS #35, Part 2, Section 6. A subset of units from the full list was selected for use in ECMAScript. Pairs of simple units can be concatenated with "-per-" to make a compound unit. There is no default value; if the style is "unit", the unit property must be provided.
34+
*/
35+
unit?: string;
36+
37+
/**
38+
* The unit formatting style to use in unit formatting, the defaults is "short".
39+
*/
40+
unitDisplay?: string;
41+
42+
/**
43+
* The currency to use in currency formatting. Possible values are the ISO 4217 currency codes, such as "USD" for the US dollar, "EUR" for the euro, or "CNY" for the Chinese RMB — see the Current currency & funds code list. There is no default value; if the style is "currency", the currency property must be provided. It is only used when [[Style]] has the value "currency".
44+
*/
45+
currency?: string;
46+
47+
/**
48+
* How to display the currency in currency formatting. It is only used when [[Style]] has the value "currency". The default is "symbol".
49+
*
50+
* "symbol" to use a localized currency symbol such as €,
51+
*
52+
* "code" to use the ISO currency code,
53+
*
54+
* "name" to use a localized currency name such as "dollar"
55+
*/
56+
currencyDisplay?: string;
57+
58+
/**
59+
* Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators. The default is true.
60+
*/
61+
useGrouping?: boolean;
62+
63+
/**
64+
* The minimum number of integer digits to use. Possible values are from 1 to 21; the default is 1.
65+
*/
66+
minimumIntegerDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
67+
68+
/**
69+
* The minimum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information).
70+
*/
71+
minimumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
72+
73+
/**
74+
* The maximum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number formatting is the larger of minimumFractionDigits and 3; the default for currency formatting is the larger of minimumFractionDigits and the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information); the default for percent formatting is the larger of minimumFractionDigits and 0.
75+
*/
76+
maximumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
77+
78+
/**
79+
* The minimum number of significant digits to use. Possible values are from 1 to 21; the default is 1.
80+
*/
81+
minimumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
82+
83+
/**
84+
* The maximum number of significant digits to use. Possible values are from 1 to 21; the default is 21.
85+
*/
86+
maximumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
87+
88+
/**
89+
* The formatting that should be displayed for the number, the defaults is "standard"
90+
*
91+
* "standard" plain number formatting
92+
*
93+
* "scientific" return the order-of-magnitude for formatted number.
94+
*
95+
* "engineering" return the exponent of ten when divisible by three
96+
*
97+
* "compact" string representing exponent, defaults is using the "short" form
98+
*/
99+
notation?: string;
100+
101+
/**
102+
* used only when notation is "compact"
103+
*/
104+
compactDisplay?: string;
105+
}
106+
21107
interface BigInt {
22108
/**
23109
* Returns a string representation of an object.
@@ -26,7 +112,7 @@ interface BigInt {
26112
toString(radix?: number): string;
27113

28114
/** Returns a string representation appropriate to the host environment's current locale. */
29-
toLocaleString(): string;
115+
toLocaleString(locales?: string, options?: BigIntToLocaleStringOptions): string;
30116

31117
/** Returns the primitive value of the specified object. */
32118
valueOf(): bigint;
@@ -633,3 +719,10 @@ interface DataView {
633719
*/
634720
setBigUint64(byteOffset: number, value: bigint, littleEndian?: boolean): void;
635721
}
722+
723+
declare namespace Intl{
724+
interface NumberFormat {
725+
format(value: number | bigint): string;
726+
resolvedOptions(): ResolvedNumberFormatOptions;
727+
}
728+
}

lib/lib.es2020.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ and limitations under the License.
2121
/// <reference lib="es2019" />
2222
/// <reference lib="es2020.bigint" />
2323
/// <reference lib="es2020.promise" />
24+
/// <reference lib="es2020.sharedmemory" />
2425
/// <reference lib="es2020.string" />
2526
/// <reference lib="es2020.symbol.wellknown" />
2627
/// <reference lib="es2020.intl" />

0 commit comments

Comments
 (0)