@typescript/typescript-aix-ppc64 7.0.2 → 7.1.0-beta

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.
@@ -47,7 +47,6 @@ declare namespace Intl {
47
47
 
48
48
  interface PluralRulesConstructor {
49
49
  new (locales?: string | readonly string[], options?: PluralRulesOptions): PluralRules;
50
- (locales?: string | readonly string[], options?: PluralRulesOptions): PluralRules;
51
50
  supportedLocalesOf(locales: string | readonly string[], options?: { localeMatcher?: "lookup" | "best fit"; }): string[];
52
51
  }
53
52
 
@@ -465,7 +465,6 @@ declare namespace Intl {
465
465
 
466
466
  interface PluralRulesConstructor {
467
467
  new (locales?: LocalesArgument, options?: PluralRulesOptions): PluralRules;
468
- (locales?: LocalesArgument, options?: PluralRulesOptions): PluralRules;
469
468
 
470
469
  supportedLocalesOf(locales: LocalesArgument, options?: { localeMatcher?: "lookup" | "best fit"; }): string[];
471
470
  }
@@ -17,7 +17,7 @@ and limitations under the License.
17
17
  interface Array<T> {
18
18
  /**
19
19
  * Returns the item located at the specified index.
20
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
20
+ * @param index The zero-based index of the desired item. A negative index will count back from the last item.
21
21
  */
22
22
  at(index: number): T | undefined;
23
23
  }
@@ -25,7 +25,7 @@ interface Array<T> {
25
25
  interface ReadonlyArray<T> {
26
26
  /**
27
27
  * Returns the item located at the specified index.
28
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
28
+ * @param index The zero-based index of the desired item. A negative index will count back from the last item.
29
29
  */
30
30
  at(index: number): T | undefined;
31
31
  }
@@ -33,7 +33,7 @@ interface ReadonlyArray<T> {
33
33
  interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
34
34
  /**
35
35
  * Returns the item located at the specified index.
36
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
36
+ * @param index The zero-based index of the desired item. A negative index will count back from the last item.
37
37
  */
38
38
  at(index: number): number | undefined;
39
39
  }
@@ -41,7 +41,7 @@ interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
41
41
  interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
42
42
  /**
43
43
  * Returns the item located at the specified index.
44
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
44
+ * @param index The zero-based index of the desired item. A negative index will count back from the last item.
45
45
  */
46
46
  at(index: number): number | undefined;
47
47
  }
@@ -49,7 +49,7 @@ interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
49
49
  interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
50
50
  /**
51
51
  * Returns the item located at the specified index.
52
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
52
+ * @param index The zero-based index of the desired item. A negative index will count back from the last item.
53
53
  */
54
54
  at(index: number): number | undefined;
55
55
  }
@@ -57,7 +57,7 @@ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
57
57
  interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
58
58
  /**
59
59
  * Returns the item located at the specified index.
60
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
60
+ * @param index The zero-based index of the desired item. A negative index will count back from the last item.
61
61
  */
62
62
  at(index: number): number | undefined;
63
63
  }
@@ -65,7 +65,7 @@ interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
65
65
  interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
66
66
  /**
67
67
  * Returns the item located at the specified index.
68
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
68
+ * @param index The zero-based index of the desired item. A negative index will count back from the last item.
69
69
  */
70
70
  at(index: number): number | undefined;
71
71
  }
@@ -73,7 +73,7 @@ interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
73
73
  interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
74
74
  /**
75
75
  * Returns the item located at the specified index.
76
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
76
+ * @param index The zero-based index of the desired item. A negative index will count back from the last item.
77
77
  */
78
78
  at(index: number): number | undefined;
79
79
  }
@@ -81,7 +81,7 @@ interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
81
81
  interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
82
82
  /**
83
83
  * Returns the item located at the specified index.
84
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
84
+ * @param index The zero-based index of the desired item. A negative index will count back from the last item.
85
85
  */
86
86
  at(index: number): number | undefined;
87
87
  }
@@ -89,7 +89,7 @@ interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
89
89
  interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
90
90
  /**
91
91
  * Returns the item located at the specified index.
92
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
92
+ * @param index The zero-based index of the desired item. A negative index will count back from the last item.
93
93
  */
94
94
  at(index: number): number | undefined;
95
95
  }
@@ -97,7 +97,7 @@ interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
97
97
  interface Float64Array<TArrayBuffer extends ArrayBufferLike> {
98
98
  /**
99
99
  * Returns the item located at the specified index.
100
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
100
+ * @param index The zero-based index of the desired item. A negative index will count back from the last item.
101
101
  */
102
102
  at(index: number): number | undefined;
103
103
  }
@@ -105,7 +105,7 @@ interface Float64Array<TArrayBuffer extends ArrayBufferLike> {
105
105
  interface BigInt64Array<TArrayBuffer extends ArrayBufferLike> {
106
106
  /**
107
107
  * Returns the item located at the specified index.
108
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
108
+ * @param index The zero-based index of the desired item. A negative index will count back from the last item.
109
109
  */
110
110
  at(index: number): bigint | undefined;
111
111
  }
@@ -113,7 +113,7 @@ interface BigInt64Array<TArrayBuffer extends ArrayBufferLike> {
113
113
  interface BigUint64Array<TArrayBuffer extends ArrayBufferLike> {
114
114
  /**
115
115
  * Returns the item located at the specified index.
116
- * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
116
+ * @param index The zero-based index of the desired item. A negative index will count back from the last item.
117
117
  */
118
118
  at(index: number): bigint | undefined;
119
119
  }
@@ -59,4 +59,8 @@ declare namespace Intl {
59
59
  formatRange(start: number | bigint | StringNumericLiteral, end: number | bigint | StringNumericLiteral): string;
60
60
  formatRangeToParts(start: number | bigint | StringNumericLiteral, end: number | bigint | StringNumericLiteral): NumberRangeFormatPart[];
61
61
  }
62
+
63
+ interface PluralRules {
64
+ selectRange(start: number, end: number): LDMLPluralRule;
65
+ }
62
66
  }
@@ -25,9 +25,9 @@ interface ArrayConstructor {
25
25
  * Creates an array from an async iterator or iterable object.
26
26
  *
27
27
  * @param iterableOrArrayLike An async iterator or array-like object to convert to an array.
28
- * @param mapfn A mapping function to call on every element of itarableOrArrayLike.
28
+ * @param mapFn A mapping function to call on every element of iterableOrArrayLike.
29
29
  * Each return value is awaited before being added to result array.
30
- * @param thisArg Value of 'this' used when executing mapfn.
30
+ * @param thisArg Value of 'this' used when executing mapFn.
31
31
  */
32
32
  fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
33
33
  }
@@ -0,0 +1,24 @@
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
+ MERCHANTABILITY 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
+ /// <reference lib="es2025" />
18
+ /// <reference lib="es2026.array" />
19
+ /// <reference lib="es2026.collection" />
20
+ /// <reference lib="es2026.error" />
21
+ /// <reference lib="es2026.iterator" />
22
+ /// <reference lib="es2026.json" />
23
+ /// <reference lib="es2026.math" />
24
+ /// <reference lib="es2026.typedarrays" />
@@ -0,0 +1,22 @@
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
+ MERCHANTABILITY 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
+ /// <reference lib="es2026" />
18
+ /// <reference lib="dom" />
19
+ /// <reference lib="webworker.importscripts" />
20
+ /// <reference lib="scripthost" />
21
+ /// <reference lib="dom.iterable" />
22
+ /// <reference lib="dom.asynciterable" />
@@ -0,0 +1,25 @@
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
+ MERCHANTABILITY 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
+ /// <reference lib="es2025.iterator" />
18
+
19
+ interface IteratorConstructor {
20
+ /**
21
+ * Creates an iterator that yields the values of each iterable in sequence.
22
+ * @param iterables Iterable objects to concatenate.
23
+ */
24
+ concat<T extends readonly unknown[] | []>(...iterables: { -readonly [K in keyof T]: Iterable<T[K]> & object }): IteratorObject<T[number], undefined, unknown>;
25
+ }
@@ -0,0 +1,54 @@
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
+ MERCHANTABILITY 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
+ export {};
18
+
19
+ declare class RawJSONInstance {
20
+ #isRawJson: unknown;
21
+ readonly rawJSON: string;
22
+ }
23
+
24
+ declare global {
25
+ /**
26
+ * A frozen object containing JSON text for a primitive value, created by `JSON.rawJSON()`.
27
+ */
28
+ interface RawJSON extends RawJSONInstance {}
29
+
30
+ interface JSON {
31
+ /**
32
+ * Converts a JavaScript Object Notation (JSON) string into an object.
33
+ * @param text A valid JSON string.
34
+ * @param reviver A function that transforms the results. This function is called for each member of the object.
35
+ * If a member contains nested objects, the nested objects are transformed before the parent object is.
36
+ * The context object has a `source` property when the property is unmodified and its value is primitive.
37
+ * @throws {SyntaxError} If `text` is not valid JSON.
38
+ */
39
+ parse(text: string, reviver: (this: any, key: string, value: any, context: { source?: string }) => any): any;
40
+
41
+ /**
42
+ * Creates a frozen object containing JSON text for a primitive value.
43
+ * @param text Valid JSON text representing a string, number, boolean, or null value.
44
+ * @throws {SyntaxError} If `text` is not valid JSON text for a primitive value.
45
+ */
46
+ rawJSON(text: string): RawJSON;
47
+
48
+ /**
49
+ * Indicates whether the provided value is an object returned by `JSON.rawJSON()`.
50
+ * @param value The value to test.
51
+ */
52
+ isRawJSON(value: unknown): value is RawJSON;
53
+ }
54
+ }
@@ -0,0 +1,27 @@
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
+ MERCHANTABILITY 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
+ /// <reference lib="es2015.iterable" />
18
+
19
+ interface Math {
20
+ /**
21
+ * Sums the values in an iterable while minimizing loss of precision.
22
+ * @param items An iterable of numbers to sum.
23
+ * @throws {TypeError} If `items` is not iterable or contains a value that is not a number.
24
+ * @throws {RangeError} If `items` contains 2^53 or more values.
25
+ */
26
+ sumPrecise(items: Iterable<number>): number;
27
+ }
package/lib/lib.es5.d.ts CHANGED
@@ -1001,7 +1001,7 @@ interface RegExp {
1001
1001
  */
1002
1002
  test(string: string): boolean;
1003
1003
 
1004
- /** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */
1004
+ /** Returns a copy of the text of the regular expression pattern. Read-only. */
1005
1005
  readonly source: string;
1006
1006
 
1007
1007
  /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */
@@ -14,14 +14,13 @@ and limitations under the License.
14
14
  ***************************************************************************** */
15
15
 
16
16
 
17
- /// <reference lib="es2025" />
17
+ /// <reference lib="es2026" />
18
18
  /// <reference lib="esnext.intl" />
19
- /// <reference lib="esnext.collection" />
20
19
  /// <reference lib="esnext.decorators" />
21
20
  /// <reference lib="esnext.disposable" />
22
- /// <reference lib="esnext.array" />
23
- /// <reference lib="esnext.error" />
24
21
  /// <reference lib="esnext.sharedmemory" />
25
- /// <reference lib="esnext.typedarrays" />
26
22
  /// <reference lib="esnext.temporal" />
27
23
  /// <reference lib="esnext.date" />
24
+ /// <reference lib="esnext.iterator" />
25
+ /// <reference lib="esnext.modulesource" />
26
+ /// <reference lib="esnext.promise" />
@@ -0,0 +1,149 @@
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
+ MERCHANTABILITY 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
+ /// <reference lib="es2026.iterator" />
18
+
19
+ export {};
20
+
21
+ type IteratorZipShortestOptions = {
22
+ /**
23
+ * Stops when any input is exhausted.
24
+ */
25
+ mode?: "shortest" | undefined;
26
+ };
27
+
28
+ type IteratorZipLongestOptions<T> = {
29
+ /**
30
+ * Continues until every input is exhausted.
31
+ */
32
+ mode: "longest";
33
+
34
+ /**
35
+ * Values used when an input is exhausted before the others.
36
+ */
37
+ padding?: (T & object) | undefined;
38
+ };
39
+
40
+ type IteratorZipStrictOptions = {
41
+ /**
42
+ * Requires every input to yield the same number of values.
43
+ * If not, a `TypeError` will be thrown when an input is exhausted before others.
44
+ */
45
+ mode: "strict";
46
+ };
47
+
48
+ type IteratorZipOptions<T> =
49
+ | IteratorZipShortestOptions
50
+ | IteratorZipLongestOptions<T>
51
+ | IteratorZipStrictOptions;
52
+
53
+ type IteratorInput<T> = (Iterable<T> | Iterator<T>) & object;
54
+
55
+ type IteratorYield<T> = T extends IteratorInput<infer U> ? U : never;
56
+
57
+ type IteratorZipKey<K extends PropertyKey> = K extends number ? K | `${K}` | (number extends K ? "NaN" | "Infinity" | "-Infinity" : never)
58
+ : K extends `${infer N extends number}` ? `${N}` extends K ? K | N : K : K;
59
+
60
+ type IteratorZipDefaultPadding<T> = {
61
+ readonly [K in keyof T]?: IteratorYield<T[K]> | undefined;
62
+ };
63
+
64
+ type IteratorZipPaddingKeys<T> = keyof {
65
+ [K in keyof T as {} extends Pick<T, K> ? never : IteratorZipKey<K>]: unknown;
66
+ };
67
+
68
+ type IteratorZipValue<T, K extends PropertyKey, TExtra, TPadding> =
69
+ | IteratorYield<T>
70
+ | (TPadding extends unknown ? TPadding[IteratorZipKey<K> & keyof TPadding] | (K extends "NaN" | "Infinity" | "-Infinity" ? TPadding[number & keyof TPadding] : never) : never)
71
+ | (IteratorZipKey<K> extends IteratorZipPaddingKeys<TPadding> ? never : TExtra);
72
+
73
+ type IteratorZipResult<T, TExtra = never, TPadding = {}> = {
74
+ -readonly [K in keyof T]: IteratorZipValue<T[K], K, TExtra, TPadding>;
75
+ };
76
+
77
+ type IteratorZipKeyedInput<T> = {
78
+ [K in T extends unknown ? keyof T : never]?: IteratorInput<unknown> | undefined;
79
+ };
80
+
81
+ type IteratorZipKeyedResult<T, TExtra = never, TPadding = {}> = T extends Partial<Record<keyof T, undefined>> ? keyof T extends never ? Record<PropertyKey, unknown> : never
82
+ : { -readonly [K in keyof T as undefined extends T[K] ? never : K]: IteratorZipValue<T[K], K, TExtra, TPadding>; } &
83
+ { -readonly [K in keyof T as undefined extends T[K] ? T[K] extends undefined ? never : K : never]?: IteratorZipValue<T[K], K, TExtra, TPadding>; };
84
+
85
+ declare global {
86
+ interface IteratorObject<T, TReturn, TNext> {
87
+ /**
88
+ * Creates an iterator whose values are arrays containing successive values from this iterator.
89
+ * @param chunkSize The maximum number of values in each array.
90
+ */
91
+ chunks(chunkSize: number): IteratorObject<T[], undefined, unknown>;
92
+
93
+ /**
94
+ * Creates a string by concatenating the values of this iterator, separated by the specified separator.
95
+ * `null` and `undefined` values contribute an empty string.
96
+ * @param separator A string used to separate values. If omitted, a comma is used.
97
+ */
98
+ join(separator?: string): string;
99
+
100
+ /**
101
+ * Determines whether this iterator yields the specified value using SameValueZero comparison.
102
+ * @param searchElement The value to locate.
103
+ * @param skippedElements The number of values to skip before searching.
104
+ */
105
+ includes(searchElement: T, skippedElements?: number): boolean;
106
+ }
107
+
108
+ interface IteratorConstructor {
109
+ /**
110
+ * Creates an iterator whose values are arrays containing values yielded at the same position by each input iterator or iterable.
111
+ * @param iterables An iterable of iterators or iterables to zip.
112
+ * @param options Controls how differing input lengths are handled.
113
+ */
114
+ zip(iterables: readonly [], options?: IteratorZipOptions<Iterable<unknown> & object>): IteratorObject<never, undefined, unknown>;
115
+
116
+ /**
117
+ * Creates an iterator whose values are arrays containing values yielded at the same position by each input iterator or iterable.
118
+ * @param iterables An iterable of iterators or iterables to zip.
119
+ * @param options Controls how differing input lengths are handled.
120
+ */
121
+ zip<T extends readonly IteratorInput<unknown>[] | []>(iterables: T, options?: IteratorZipShortestOptions | IteratorZipStrictOptions): IteratorObject<IteratorZipResult<T>, undefined, unknown>;
122
+ zip<T extends readonly IteratorInput<unknown>[] | [], TPadding extends readonly unknown[] | []>(iterables: T, options: IteratorZipLongestOptions<TPadding> & { padding: TPadding; }): IteratorObject<IteratorZipResult<T, undefined, TPadding>, undefined, unknown>;
123
+ zip<T extends readonly IteratorInput<unknown>[] | [], TPadding extends readonly unknown[] | [] = IteratorZipDefaultPadding<T>>(iterables: T, options?: IteratorZipOptions<TPadding>): IteratorObject<IteratorZipResult<T, undefined, Partial<TPadding>>, undefined, unknown>;
124
+
125
+ /**
126
+ * Creates an iterator whose values are arrays containing values yielded at the same position by each input iterator or iterable.
127
+ * @param iterables An iterable of iterators or iterables to zip.
128
+ * @param options Controls how differing input lengths are handled.
129
+ */
130
+ zip<T extends IteratorInput<unknown>>(iterables: Iterable<T> & object, options?: IteratorZipShortestOptions | IteratorZipStrictOptions): IteratorObject<IteratorYield<T>[], undefined, unknown>;
131
+ zip<T extends IteratorInput<unknown>, TPadding = IteratorYield<T>>(iterables: Iterable<T> & object, options?: IteratorZipOptions<Iterable<TPadding> & object>): IteratorObject<(IteratorYield<T> | TPadding | undefined)[], undefined, unknown>;
132
+
133
+ /**
134
+ * Creates an iterator whose values are objects containing values yielded at the same position by each iterator or iterable in the input object.
135
+ * @param iterables An object whose enumerable own properties contain iterators or iterables to zip. Undefined values are ignored.
136
+ * @param options Controls how differing input lengths are handled.
137
+ */
138
+ zipKeyed<T extends object>(iterables: T & IteratorZipKeyedInput<T>, options?: IteratorZipShortestOptions | IteratorZipStrictOptions): IteratorObject<IteratorZipKeyedResult<T>, undefined, unknown>;
139
+ zipKeyed<T extends object, TPadding>(iterables: T & IteratorZipKeyedInput<T>, options: IteratorZipLongestOptions<TPadding> & { padding: TPadding; }): IteratorObject<IteratorZipKeyedResult<T, undefined, TPadding>, undefined, unknown>;
140
+ zipKeyed<T extends object, TPadding = IteratorZipDefaultPadding<T>>(iterables: T & IteratorZipKeyedInput<T>, options?: IteratorZipOptions<TPadding>): IteratorObject<IteratorZipKeyedResult<T, undefined, Partial<TPadding>>, undefined, unknown>;
141
+
142
+ /**
143
+ * Accepts objects whose types include inherited or non-enumerable properties.
144
+ * Property ownership and enumerability are not represented in object types, so the result values are unknown.
145
+ * Iterator records use the preceding overloads to preserve their inferred result types.
146
+ */
147
+ zipKeyed<T extends object>(iterables: T & ([T] extends [IteratorZipKeyedInput<T>] ? never : unknown), options?: IteratorZipOptions<object>): IteratorObject<Record<PropertyKey, unknown>, undefined, unknown>;
148
+ }
149
+ }
@@ -0,0 +1,21 @@
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
+ MERCHANTABILITY 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
+ /// <reference lib="es2015.symbol.wellknown" />
18
+
19
+ interface AbstractModuleSource {
20
+ readonly [Symbol.toStringTag]: string;
21
+ }
@@ -0,0 +1,35 @@
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
+ MERCHANTABILITY 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
+ /// <reference lib="es2020.promise" />
18
+ /// <reference lib="es2025.promise" />
19
+
20
+ interface PromiseConstructor {
21
+ /**
22
+ * Creates a Promise that is resolved with an object of results when all of the provided Promises resolve,
23
+ * or rejected when any Promise is rejected.
24
+ * @param promises An object of Promises.
25
+ * @returns A new Promise.
26
+ */
27
+ allKeyed<T extends object>(promises: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]>; }>;
28
+
29
+ /**
30
+ * Creates a Promise that is resolved with an object of results when all of the provided Promises resolve or reject.
31
+ * @param promises An object of Promises.
32
+ * @returns A new Promise.
33
+ */
34
+ allSettledKeyed<T extends object>(promises: T): Promise<{ -readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>>; }>;
35
+ }