@typescript-deploys/pr-build 5.3.0-pr-55638-16 → 5.3.0-pr-55278-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SECURITY.md +7 -7
- package/lib/cancellationToken.js +1 -1
- package/lib/lib.decorators.d.ts +6 -3
- package/lib/lib.es2015.collection.d.ts +2 -1
- package/lib/lib.es2015.core.d.ts +1 -1
- package/lib/lib.es2015.iterable.d.ts +5 -4
- package/lib/lib.es2015.promise.d.ts +1 -1
- package/lib/lib.es2015.symbol.d.ts +1 -1
- package/lib/lib.es2016.array.include.d.ts +1 -1
- package/lib/lib.es2016.d.ts +1 -1
- package/lib/lib.es2016.full.d.ts +1 -1
- package/lib/lib.es2017.full.d.ts +1 -1
- package/lib/lib.es2017.intl.d.ts +12 -11
- package/lib/lib.es2017.object.d.ts +3 -3
- package/lib/lib.es2018.asynciterable.d.ts +1 -1
- package/lib/lib.es2018.full.d.ts +1 -1
- package/lib/lib.es2018.intl.d.ts +2 -1
- package/lib/lib.es2018.promise.d.ts +1 -1
- package/lib/lib.es2018.regexp.d.ts +5 -5
- package/lib/lib.es2019.array.d.ts +18 -14
- package/lib/lib.es2019.intl.d.ts +1 -1
- package/lib/lib.es2019.object.d.ts +1 -1
- package/lib/lib.es2020.bigint.d.ts +7 -7
- package/lib/lib.es2020.date.d.ts +1 -1
- package/lib/lib.es2020.intl.d.ts +13 -11
- package/lib/lib.es2020.promise.d.ts +1 -1
- package/lib/lib.es2021.intl.d.ts +6 -5
- package/lib/lib.es2021.promise.d.ts +3 -3
- package/lib/lib.es2021.weakref.d.ts +2 -2
- package/lib/lib.es2022.error.d.ts +2 -2
- package/lib/lib.es2022.intl.d.ts +2 -1
- package/lib/lib.es2022.sharedmemory.d.ts +2 -2
- package/lib/lib.es2023.array.d.ts +61 -61
- package/lib/lib.es5.d.ts +88 -74
- package/lib/lib.esnext.disposable.d.ts +10 -10
- package/lib/lib.esnext.full.d.ts +1 -1
- package/lib/lib.esnext.intl.d.ts +7 -7
- package/lib/lib.scripthost.d.ts +4 -1
- package/lib/lib.webworker.importscripts.d.ts +1 -0
- package/lib/tsc.js +1675 -1536
- package/lib/tsserver.js +2361 -2171
- package/lib/typesMap.json +2 -2
- package/lib/typescript.d.ts +118 -345
- package/lib/typescript.js +2748 -2565
- package/lib/typingsInstaller.js +215 -164
- package/package.json +5 -4
package/SECURITY.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.
|
|
1
|
+
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.5 BLOCK -->
|
|
2
2
|
|
|
3
3
|
## Security
|
|
4
4
|
|
|
5
|
-
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet)
|
|
5
|
+
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
|
|
6
6
|
|
|
7
|
-
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://
|
|
7
|
+
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc751383(v=technet.10)), please report it to us as described below.
|
|
8
8
|
|
|
9
9
|
## Reporting Security Issues
|
|
10
10
|
|
|
11
11
|
**Please do not report security vulnerabilities through public GitHub issues.**
|
|
12
12
|
|
|
13
|
-
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://
|
|
13
|
+
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report).
|
|
14
14
|
|
|
15
|
-
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://
|
|
15
|
+
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc).
|
|
16
16
|
|
|
17
17
|
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).
|
|
18
18
|
|
|
@@ -28,7 +28,7 @@ Please include the requested information listed below (as much as you can provid
|
|
|
28
28
|
|
|
29
29
|
This information will help us triage your report more quickly.
|
|
30
30
|
|
|
31
|
-
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://
|
|
31
|
+
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more details about our active programs.
|
|
32
32
|
|
|
33
33
|
## Preferred Languages
|
|
34
34
|
|
|
@@ -36,6 +36,6 @@ We prefer all communications to be in English.
|
|
|
36
36
|
|
|
37
37
|
## Policy
|
|
38
38
|
|
|
39
|
-
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://
|
|
39
|
+
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd).
|
|
40
40
|
|
|
41
41
|
<!-- END MICROSOFT SECURITY.MD BLOCK -->
|
package/lib/cancellationToken.js
CHANGED
|
@@ -60,7 +60,7 @@ function createCancellationToken(args) {
|
|
|
60
60
|
}
|
|
61
61
|
if (cancellationPipeName.charAt(cancellationPipeName.length - 1) === "*") {
|
|
62
62
|
const namePrefix = cancellationPipeName.slice(0, -1);
|
|
63
|
-
if (namePrefix.length === 0 || namePrefix.
|
|
63
|
+
if (namePrefix.length === 0 || namePrefix.indexOf("*") >= 0) {
|
|
64
64
|
throw new Error("Invalid name for template cancellation pipe: it should have length greater than 2 characters and contain only one '*'.");
|
|
65
65
|
}
|
|
66
66
|
let perRequestPipeName;
|
package/lib/lib.decorators.d.ts
CHANGED
|
@@ -24,18 +24,21 @@ type ClassMemberDecoratorContext =
|
|
|
24
24
|
| ClassGetterDecoratorContext
|
|
25
25
|
| ClassSetterDecoratorContext
|
|
26
26
|
| ClassFieldDecoratorContext
|
|
27
|
-
| ClassAccessorDecoratorContext
|
|
27
|
+
| ClassAccessorDecoratorContext
|
|
28
|
+
;
|
|
28
29
|
|
|
29
30
|
/**
|
|
30
31
|
* The decorator context types provided to any decorator.
|
|
31
32
|
*/
|
|
32
33
|
type DecoratorContext =
|
|
33
34
|
| ClassDecoratorContext
|
|
34
|
-
| ClassMemberDecoratorContext
|
|
35
|
+
| ClassMemberDecoratorContext
|
|
36
|
+
;
|
|
35
37
|
|
|
36
38
|
type DecoratorMetadataObject = Record<PropertyKey, unknown> & object;
|
|
37
39
|
|
|
38
|
-
type DecoratorMetadata =
|
|
40
|
+
type DecoratorMetadata =
|
|
41
|
+
typeof globalThis extends { Symbol: { readonly metadata: symbol } } ? DecoratorMetadataObject : DecoratorMetadataObject | undefined;
|
|
39
42
|
|
|
40
43
|
/**
|
|
41
44
|
* Context provided to a class decorator.
|
|
@@ -17,6 +17,7 @@ and limitations under the License.
|
|
|
17
17
|
/// <reference no-default-lib="true"/>
|
|
18
18
|
|
|
19
19
|
interface Map<K, V> {
|
|
20
|
+
|
|
20
21
|
clear(): void;
|
|
21
22
|
/**
|
|
22
23
|
* @returns true if an element in the Map existed and has been removed, or false if the element does not exist.
|
|
@@ -46,7 +47,7 @@ interface Map<K, V> {
|
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
interface MapConstructor {
|
|
49
|
-
new
|
|
50
|
+
new(): Map<any, any>;
|
|
50
51
|
new <K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;
|
|
51
52
|
readonly prototype: Map<any, any>;
|
|
52
53
|
}
|
package/lib/lib.es2015.core.d.ts
CHANGED
|
@@ -553,5 +553,5 @@ interface StringConstructor {
|
|
|
553
553
|
* @param template A well-formed template string call site representation.
|
|
554
554
|
* @param substitutions A set of substitution values.
|
|
555
555
|
*/
|
|
556
|
-
raw(template: { raw: readonly string[] | ArrayLike<string
|
|
556
|
+
raw(template: { raw: readonly string[] | ArrayLike<string>}, ...substitutions: any[]): string;
|
|
557
557
|
}
|
|
@@ -155,11 +155,11 @@ interface ReadonlyMap<K, V> {
|
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
interface MapConstructor {
|
|
158
|
-
new
|
|
158
|
+
new(): Map<any, any>;
|
|
159
159
|
new <K, V>(iterable?: Iterable<readonly [K, V]> | null): Map<K, V>;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
interface WeakMap<K extends WeakKey, V> {}
|
|
162
|
+
interface WeakMap<K extends WeakKey, V> { }
|
|
163
163
|
|
|
164
164
|
interface WeakMapConstructor {
|
|
165
165
|
new <K extends WeakKey, V>(iterable: Iterable<readonly [K, V]>): WeakMap<K, V>;
|
|
@@ -207,13 +207,13 @@ interface SetConstructor {
|
|
|
207
207
|
new <T>(iterable?: Iterable<T> | null): Set<T>;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
interface WeakSet<T extends WeakKey> {}
|
|
210
|
+
interface WeakSet<T extends WeakKey> { }
|
|
211
211
|
|
|
212
212
|
interface WeakSetConstructor {
|
|
213
213
|
new <T extends WeakKey = WeakKey>(iterable: Iterable<T>): WeakSet<T>;
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
-
interface Promise<T> {}
|
|
216
|
+
interface Promise<T> { }
|
|
217
217
|
|
|
218
218
|
interface PromiseConstructor {
|
|
219
219
|
/**
|
|
@@ -315,6 +315,7 @@ interface Uint8ClampedArray {
|
|
|
315
315
|
interface Uint8ClampedArrayConstructor {
|
|
316
316
|
new (elements: Iterable<number>): Uint8ClampedArray;
|
|
317
317
|
|
|
318
|
+
|
|
318
319
|
/**
|
|
319
320
|
* Creates an array from an array-like or iterable object.
|
|
320
321
|
* @param arrayLike An array-like or iterable object to convert to an array.
|
|
@@ -36,7 +36,7 @@ interface PromiseConstructor {
|
|
|
36
36
|
* @param values An array of Promises.
|
|
37
37
|
* @returns A new Promise.
|
|
38
38
|
*/
|
|
39
|
-
all<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]
|
|
39
|
+
all<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]> }>;
|
|
40
40
|
|
|
41
41
|
// see: lib.es2015.iterable.d.ts
|
|
42
42
|
// all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;
|
package/lib/lib.es2016.d.ts
CHANGED
package/lib/lib.es2016.full.d.ts
CHANGED
package/lib/lib.es2017.full.d.ts
CHANGED
package/lib/lib.es2017.intl.d.ts
CHANGED
|
@@ -17,18 +17,19 @@ and limitations under the License.
|
|
|
17
17
|
/// <reference no-default-lib="true"/>
|
|
18
18
|
|
|
19
19
|
declare namespace Intl {
|
|
20
|
+
|
|
20
21
|
interface DateTimeFormatPartTypesRegistry {
|
|
21
|
-
day: any
|
|
22
|
-
dayPeriod: any
|
|
23
|
-
era: any
|
|
24
|
-
hour: any
|
|
25
|
-
literal: any
|
|
26
|
-
minute: any
|
|
27
|
-
month: any
|
|
28
|
-
second: any
|
|
29
|
-
timeZoneName: any
|
|
30
|
-
weekday: any
|
|
31
|
-
year: any
|
|
22
|
+
day: any
|
|
23
|
+
dayPeriod: any
|
|
24
|
+
era: any
|
|
25
|
+
hour: any
|
|
26
|
+
literal: any
|
|
27
|
+
minute: any
|
|
28
|
+
month: any
|
|
29
|
+
second: any
|
|
30
|
+
timeZoneName: any
|
|
31
|
+
weekday: any
|
|
32
|
+
year: any
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
type DateTimeFormatPartTypes = keyof DateTimeFormatPartTypesRegistry;
|
|
@@ -21,7 +21,7 @@ interface ObjectConstructor {
|
|
|
21
21
|
* Returns an array of values of the enumerable properties of an object
|
|
22
22
|
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
23
23
|
*/
|
|
24
|
-
values<T>(o: { [s: string]: T
|
|
24
|
+
values<T>(o: { [s: string]: T } | ArrayLike<T>): T[];
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Returns an array of values of the enumerable properties of an object
|
|
@@ -33,7 +33,7 @@ interface ObjectConstructor {
|
|
|
33
33
|
* Returns an array of key/values of the enumerable properties of an object
|
|
34
34
|
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
35
35
|
*/
|
|
36
|
-
entries<T>(o: { [s: string]: T
|
|
36
|
+
entries<T>(o: { [s: string]: T } | ArrayLike<T>): [string, T][];
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* Returns an array of key/values of the enumerable properties of an object
|
|
@@ -45,5 +45,5 @@ interface ObjectConstructor {
|
|
|
45
45
|
* Returns an object containing all own property descriptors of an object
|
|
46
46
|
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
47
47
|
*/
|
|
48
|
-
getOwnPropertyDescriptors<T>(o: T): {
|
|
48
|
+
getOwnPropertyDescriptors<T>(o: T): {[P in keyof T]: TypedPropertyDescriptor<T[P]>} & { [x: string]: PropertyDescriptor };
|
|
49
49
|
}
|
package/lib/lib.es2018.full.d.ts
CHANGED
package/lib/lib.es2018.intl.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ and limitations under the License.
|
|
|
17
17
|
/// <reference no-default-lib="true"/>
|
|
18
18
|
|
|
19
19
|
declare namespace Intl {
|
|
20
|
+
|
|
20
21
|
// http://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories
|
|
21
22
|
type LDMLPluralRule = "zero" | "one" | "two" | "few" | "many" | "other";
|
|
22
23
|
type PluralRuleType = "cardinal" | "ordinal";
|
|
@@ -51,7 +52,7 @@ declare namespace Intl {
|
|
|
51
52
|
new (locales?: string | string[], options?: PluralRulesOptions): PluralRules;
|
|
52
53
|
(locales?: string | string[], options?: PluralRulesOptions): PluralRules;
|
|
53
54
|
|
|
54
|
-
supportedLocalesOf(locales: string | string[], options?: { localeMatcher?: "lookup" | "best fit"
|
|
55
|
+
supportedLocalesOf(locales: string | string[], options?: { localeMatcher?: "lookup" | "best fit" }): string[];
|
|
55
56
|
};
|
|
56
57
|
|
|
57
58
|
// We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here:
|
|
@@ -26,5 +26,5 @@ interface Promise<T> {
|
|
|
26
26
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
27
27
|
* @returns A Promise for the completion of the callback.
|
|
28
28
|
*/
|
|
29
|
-
finally(onfinally?: (() => void) | undefined | null): Promise<T
|
|
29
|
+
finally(onfinally?: (() => void) | undefined | null): Promise<T>
|
|
30
30
|
}
|
|
@@ -18,14 +18,14 @@ and limitations under the License.
|
|
|
18
18
|
|
|
19
19
|
interface RegExpMatchArray {
|
|
20
20
|
groups?: {
|
|
21
|
-
[key: string]: string
|
|
22
|
-
}
|
|
21
|
+
[key: string]: string
|
|
22
|
+
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
interface RegExpExecArray {
|
|
26
26
|
groups?: {
|
|
27
|
-
[key: string]: string
|
|
28
|
-
}
|
|
27
|
+
[key: string]: string
|
|
28
|
+
}
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
interface RegExp {
|
|
@@ -34,4 +34,4 @@ interface RegExp {
|
|
|
34
34
|
* Default is false. Read-only.
|
|
35
35
|
*/
|
|
36
36
|
readonly dotAll: boolean;
|
|
37
|
-
}
|
|
37
|
+
}
|
|
@@ -17,12 +17,14 @@ and limitations under the License.
|
|
|
17
17
|
/// <reference no-default-lib="true"/>
|
|
18
18
|
|
|
19
19
|
type FlatArray<Arr, Depth extends number> = {
|
|
20
|
-
done: Arr
|
|
21
|
-
recur: Arr extends ReadonlyArray<infer InnerArr>
|
|
22
|
-
|
|
20
|
+
"done": Arr,
|
|
21
|
+
"recur": Arr extends ReadonlyArray<infer InnerArr>
|
|
22
|
+
? FlatArray<InnerArr, [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20][Depth]>
|
|
23
|
+
: Arr
|
|
23
24
|
}[Depth extends -1 ? "done" : "recur"];
|
|
24
25
|
|
|
25
26
|
interface ReadonlyArray<T> {
|
|
27
|
+
|
|
26
28
|
/**
|
|
27
29
|
* Calls a defined callback function on each element of an array. Then, flattens the result into
|
|
28
30
|
* a new array.
|
|
@@ -33,10 +35,11 @@ interface ReadonlyArray<T> {
|
|
|
33
35
|
* @param thisArg An object to which the this keyword can refer in the callback function. If
|
|
34
36
|
* thisArg is omitted, undefined is used as the this value.
|
|
35
37
|
*/
|
|
36
|
-
flatMap<U, This = undefined>(
|
|
38
|
+
flatMap<U, This = undefined> (
|
|
37
39
|
callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,
|
|
38
|
-
thisArg?: This
|
|
39
|
-
): U[]
|
|
40
|
+
thisArg?: This
|
|
41
|
+
): U[]
|
|
42
|
+
|
|
40
43
|
|
|
41
44
|
/**
|
|
42
45
|
* Returns a new array with all sub-array elements concatenated into it recursively up to the
|
|
@@ -46,11 +49,12 @@ interface ReadonlyArray<T> {
|
|
|
46
49
|
*/
|
|
47
50
|
flat<A, D extends number = 1>(
|
|
48
51
|
this: A,
|
|
49
|
-
depth?: D
|
|
50
|
-
): FlatArray<A, D>[]
|
|
51
|
-
}
|
|
52
|
+
depth?: D
|
|
53
|
+
): FlatArray<A, D>[]
|
|
54
|
+
}
|
|
52
55
|
|
|
53
56
|
interface Array<T> {
|
|
57
|
+
|
|
54
58
|
/**
|
|
55
59
|
* Calls a defined callback function on each element of an array. Then, flattens the result into
|
|
56
60
|
* a new array.
|
|
@@ -61,10 +65,10 @@ interface Array<T> {
|
|
|
61
65
|
* @param thisArg An object to which the this keyword can refer in the callback function. If
|
|
62
66
|
* thisArg is omitted, undefined is used as the this value.
|
|
63
67
|
*/
|
|
64
|
-
flatMap<U, This = undefined>(
|
|
68
|
+
flatMap<U, This = undefined> (
|
|
65
69
|
callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,
|
|
66
|
-
thisArg?: This
|
|
67
|
-
): U[]
|
|
70
|
+
thisArg?: This
|
|
71
|
+
): U[]
|
|
68
72
|
|
|
69
73
|
/**
|
|
70
74
|
* Returns a new array with all sub-array elements concatenated into it recursively up to the
|
|
@@ -74,6 +78,6 @@ interface Array<T> {
|
|
|
74
78
|
*/
|
|
75
79
|
flat<A, D extends number = 1>(
|
|
76
80
|
this: A,
|
|
77
|
-
depth?: D
|
|
78
|
-
): FlatArray<A, D>[]
|
|
81
|
+
depth?: D
|
|
82
|
+
): FlatArray<A, D>[]
|
|
79
83
|
}
|
package/lib/lib.es2019.intl.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ interface ObjectConstructor {
|
|
|
23
23
|
* Returns an object created by key-value entries for properties and methods
|
|
24
24
|
* @param entries An iterable object that contains key-value entries for properties and methods.
|
|
25
25
|
*/
|
|
26
|
-
fromEntries<T = any>(entries: Iterable<readonly [PropertyKey, T]>): { [k: string]: T
|
|
26
|
+
fromEntries<T = any>(entries: Iterable<readonly [PropertyKey, T]>): { [k: string]: T };
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* Returns an object created by key-value entries for properties and methods
|
|
@@ -389,9 +389,9 @@ interface BigInt64Array {
|
|
|
389
389
|
|
|
390
390
|
interface BigInt64ArrayConstructor {
|
|
391
391
|
readonly prototype: BigInt64Array;
|
|
392
|
-
new
|
|
393
|
-
new
|
|
394
|
-
new
|
|
392
|
+
new(length?: number): BigInt64Array;
|
|
393
|
+
new(array: Iterable<bigint>): BigInt64Array;
|
|
394
|
+
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array;
|
|
395
395
|
|
|
396
396
|
/** The size in bytes of each element in the array. */
|
|
397
397
|
readonly BYTES_PER_ELEMENT: number;
|
|
@@ -661,9 +661,9 @@ interface BigUint64Array {
|
|
|
661
661
|
|
|
662
662
|
interface BigUint64ArrayConstructor {
|
|
663
663
|
readonly prototype: BigUint64Array;
|
|
664
|
-
new
|
|
665
|
-
new
|
|
666
|
-
new
|
|
664
|
+
new(length?: number): BigUint64Array;
|
|
665
|
+
new(array: Iterable<bigint>): BigUint64Array;
|
|
666
|
+
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array;
|
|
667
667
|
|
|
668
668
|
/** The size in bytes of each element in the array. */
|
|
669
669
|
readonly BYTES_PER_ELEMENT: number;
|
|
@@ -720,7 +720,7 @@ interface DataView {
|
|
|
720
720
|
setBigUint64(byteOffset: number, value: bigint, littleEndian?: boolean): void;
|
|
721
721
|
}
|
|
722
722
|
|
|
723
|
-
declare namespace Intl
|
|
723
|
+
declare namespace Intl{
|
|
724
724
|
interface NumberFormat {
|
|
725
725
|
format(value: number | bigint): string;
|
|
726
726
|
resolvedOptions(): ResolvedNumberFormatOptions;
|
package/lib/lib.es2020.date.d.ts
CHANGED
package/lib/lib.es2020.intl.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ and limitations under the License.
|
|
|
18
18
|
|
|
19
19
|
/// <reference lib="es2018.intl" />
|
|
20
20
|
declare namespace Intl {
|
|
21
|
+
|
|
21
22
|
/**
|
|
22
23
|
* [Unicode BCP 47 Locale Identifiers](https://unicode.org/reports/tr35/#Unicode_Language_and_Locale_Identifiers) definition.
|
|
23
24
|
*
|
|
@@ -57,7 +58,7 @@ declare namespace Intl {
|
|
|
57
58
|
*
|
|
58
59
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
|
|
59
60
|
*/
|
|
60
|
-
|
|
61
|
+
type RelativeTimeFormatUnitSingular =
|
|
61
62
|
| "year"
|
|
62
63
|
| "quarter"
|
|
63
64
|
| "month"
|
|
@@ -139,14 +140,14 @@ declare namespace Intl {
|
|
|
139
140
|
*/
|
|
140
141
|
type RelativeTimeFormatPart =
|
|
141
142
|
| {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
type: "literal";
|
|
144
|
+
value: string;
|
|
145
|
+
}
|
|
145
146
|
| {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
147
|
+
type: Exclude<NumberFormatPartTypes, "literal">;
|
|
148
|
+
value: string;
|
|
149
|
+
unit: RelativeTimeFormatUnitSingular;
|
|
150
|
+
};
|
|
150
151
|
|
|
151
152
|
interface RelativeTimeFormat {
|
|
152
153
|
/**
|
|
@@ -217,7 +218,7 @@ declare namespace Intl {
|
|
|
217
218
|
*
|
|
218
219
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat).
|
|
219
220
|
*/
|
|
220
|
-
new
|
|
221
|
+
new(
|
|
221
222
|
locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
|
|
222
223
|
options?: RelativeTimeFormatOptions,
|
|
223
224
|
): RelativeTimeFormat;
|
|
@@ -409,7 +410,7 @@ declare namespace Intl {
|
|
|
409
410
|
*
|
|
410
411
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames).
|
|
411
412
|
*/
|
|
412
|
-
new
|
|
413
|
+
new(locales: LocalesArgument, options: DisplayNamesOptions): DisplayNames;
|
|
413
414
|
|
|
414
415
|
/**
|
|
415
416
|
* Returns an array containing those of the provided locales that are supported in display names without having to fall back to the runtime's default locale.
|
|
@@ -424,6 +425,7 @@ declare namespace Intl {
|
|
|
424
425
|
*
|
|
425
426
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf).
|
|
426
427
|
*/
|
|
427
|
-
supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher
|
|
428
|
+
supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher }): BCP47LanguageTag[];
|
|
428
429
|
};
|
|
430
|
+
|
|
429
431
|
}
|
|
@@ -35,7 +35,7 @@ interface PromiseConstructor {
|
|
|
35
35
|
* @param values An array of Promises.
|
|
36
36
|
* @returns A new Promise.
|
|
37
37
|
*/
|
|
38
|
-
allSettled<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]
|
|
38
|
+
allSettled<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>> }>;
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
41
|
* Creates a Promise that is resolved with an array of results when all
|
package/lib/lib.es2021.intl.d.ts
CHANGED
|
@@ -17,9 +17,10 @@ and limitations under the License.
|
|
|
17
17
|
/// <reference no-default-lib="true"/>
|
|
18
18
|
|
|
19
19
|
declare namespace Intl {
|
|
20
|
+
|
|
20
21
|
interface DateTimeFormatPartTypesRegistry {
|
|
21
|
-
fractionalSecond: any
|
|
22
|
-
|
|
22
|
+
fractionalSecond: any
|
|
23
|
+
}
|
|
23
24
|
|
|
24
25
|
interface DateTimeFormatOptions {
|
|
25
26
|
formatMatcher?: "basic" | "best fit" | "best fit" | undefined;
|
|
@@ -30,7 +31,7 @@ declare namespace Intl {
|
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
interface DateTimeRangeFormatPart extends DateTimeFormatPart {
|
|
33
|
-
source: "startRange" | "endRange" | "shared"
|
|
34
|
+
source: "startRange" | "endRange" | "shared"
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
interface DateTimeFormat {
|
|
@@ -113,7 +114,7 @@ declare namespace Intl {
|
|
|
113
114
|
*
|
|
114
115
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/formatToParts).
|
|
115
116
|
*/
|
|
116
|
-
formatToParts(list: Iterable<string>): { type: "element" | "literal"
|
|
117
|
+
formatToParts(list: Iterable<string>): { type: "element" | "literal", value: string; }[];
|
|
117
118
|
|
|
118
119
|
/**
|
|
119
120
|
* Returns a new object with properties reflecting the locale and style
|
|
@@ -143,7 +144,7 @@ declare namespace Intl {
|
|
|
143
144
|
*
|
|
144
145
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat).
|
|
145
146
|
*/
|
|
146
|
-
new
|
|
147
|
+
new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: ListFormatOptions): ListFormat;
|
|
147
148
|
|
|
148
149
|
/**
|
|
149
150
|
* Returns an array containing those of the provided locales that are
|
|
@@ -17,11 +17,11 @@ and limitations under the License.
|
|
|
17
17
|
/// <reference no-default-lib="true"/>
|
|
18
18
|
|
|
19
19
|
interface AggregateError extends Error {
|
|
20
|
-
errors: any[]
|
|
20
|
+
errors: any[]
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
interface AggregateErrorConstructor {
|
|
24
|
-
new
|
|
24
|
+
new(errors: Iterable<any>, message?: string): AggregateError;
|
|
25
25
|
(errors: Iterable<any>, message?: string): AggregateError;
|
|
26
26
|
readonly prototype: AggregateError;
|
|
27
27
|
}
|
|
@@ -44,5 +44,5 @@ interface PromiseConstructor {
|
|
|
44
44
|
* @param values An array or iterable of Promises.
|
|
45
45
|
* @returns A new Promise.
|
|
46
46
|
*/
|
|
47
|
-
any<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T
|
|
47
|
+
any<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>
|
|
48
48
|
}
|
|
@@ -35,7 +35,7 @@ interface WeakRefConstructor {
|
|
|
35
35
|
* In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.
|
|
36
36
|
* @param target The target value for the WeakRef instance.
|
|
37
37
|
*/
|
|
38
|
-
new
|
|
38
|
+
new<T extends WeakKey>(target: T): WeakRef<T>;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
declare var WeakRef: WeakRefConstructor;
|
|
@@ -70,7 +70,7 @@ interface FinalizationRegistryConstructor {
|
|
|
70
70
|
* Creates a finalization registry with an associated cleanup callback
|
|
71
71
|
* @param cleanupCallback The callback to call after a value in the registry has been reclaimed.
|
|
72
72
|
*/
|
|
73
|
-
new
|
|
73
|
+
new<T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
declare var FinalizationRegistry: FinalizationRegistryConstructor;
|
|
@@ -63,11 +63,11 @@ interface AggregateErrorConstructor {
|
|
|
63
63
|
new (
|
|
64
64
|
errors: Iterable<any>,
|
|
65
65
|
message?: string,
|
|
66
|
-
options?: ErrorOptions
|
|
66
|
+
options?: ErrorOptions
|
|
67
67
|
): AggregateError;
|
|
68
68
|
(
|
|
69
69
|
errors: Iterable<any>,
|
|
70
70
|
message?: string,
|
|
71
|
-
options?: ErrorOptions
|
|
71
|
+
options?: ErrorOptions
|
|
72
72
|
): AggregateError;
|
|
73
73
|
}
|
package/lib/lib.es2022.intl.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ and limitations under the License.
|
|
|
17
17
|
/// <reference no-default-lib="true"/>
|
|
18
18
|
|
|
19
19
|
declare namespace Intl {
|
|
20
|
+
|
|
20
21
|
/**
|
|
21
22
|
* An object with some or all properties of the `Intl.Segmenter` constructor `options` parameter.
|
|
22
23
|
*
|
|
@@ -89,7 +90,7 @@ declare namespace Intl {
|
|
|
89
90
|
*
|
|
90
91
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter).
|
|
91
92
|
*/
|
|
92
|
-
new
|
|
93
|
+
new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: SegmenterOptions): Segmenter;
|
|
93
94
|
|
|
94
95
|
/**
|
|
95
96
|
* Returns an array containing those of the provided locales that are supported without having to fall back to the runtime's default locale.
|