@typescript/typescript-aix-ppc64 7.0.1-rc → 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.
@@ -110,7 +110,7 @@ interface Set<T> {
110
110
  */
111
111
  has(value: T): boolean;
112
112
  /**
113
- * @returns the number of (unique) elements in Set.
113
+ * @returns the number of (unique) elements in the Set.
114
114
  */
115
115
  readonly size: number;
116
116
  }
@@ -122,8 +122,17 @@ interface SetConstructor {
122
122
  declare var Set: SetConstructor;
123
123
 
124
124
  interface ReadonlySet<T> {
125
+ /**
126
+ * Executes a provided function once per each value in the ReadonlySet object, in insertion order.
127
+ */
125
128
  forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;
129
+ /**
130
+ * @returns a boolean indicating whether an element with the specified value exists in the Set or not.
131
+ */
126
132
  has(value: T): boolean;
133
+ /**
134
+ * @returns the number of (unique) elements in the Set.
135
+ */
127
136
  readonly size: number;
128
137
  }
129
138
 
@@ -110,7 +110,7 @@ interface Math {
110
110
  imul(x: number, y: number): number;
111
111
 
112
112
  /**
113
- * Returns the sign of the x, indicating whether x is positive, negative or zero.
113
+ * Returns the sign of x, indicating whether x is positive, negative, or zero.
114
114
  * @param x The numeric expression to test
115
115
  */
116
116
  sign(x: number): number;
@@ -35,7 +35,7 @@ interface SymbolConstructor {
35
35
 
36
36
  /**
37
37
  * Returns a key from the global symbol registry matching the given Symbol if found.
38
- * Otherwise, returns a undefined.
38
+ * Otherwise, returns undefined.
39
39
  * @param sym Symbol to find the key for.
40
40
  */
41
41
  keyFor(sym: symbol): string | undefined;
@@ -16,28 +16,32 @@ and limitations under the License.
16
16
 
17
17
  interface String {
18
18
  /**
19
- * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
20
- * The padding is applied from the start (left) of the current string.
19
+ * Pads the current string with a given string (repeated and/or truncated, if needed) so that the resulting string has a given length.
20
+ * The padding is applied from the start of the current string.
21
21
  *
22
- * @param maxLength The length of the resulting string once the current string has been padded.
23
- * If this parameter is smaller than the current string's length, the current string will be returned as it is.
22
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart)
24
23
  *
25
- * @param fillString The string to pad the current string with.
26
- * If this string is too long, it will be truncated and the left-most part will be applied.
27
- * The default value for this parameter is " " (U+0020).
24
+ * @param targetLength The length of the resulting string once the current `str` has been padded.
25
+ * If the value is less than or equal to `str.length`, then `str` is returned as-is.
26
+ *
27
+ * @param padString The string to pad the current `str` with.
28
+ * If `padString` is too long to stay within `targetLength`, it will be truncated from the end.
29
+ * The default value is the space character (U+0020).
28
30
  */
29
- padStart(maxLength: number, fillString?: string): string;
31
+ padStart(targetLength: number, padString?: string): string;
30
32
 
31
33
  /**
32
- * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
33
- * The padding is applied from the end (right) of the current string.
34
+ * Pads the current string with a given string (repeated and/or truncated, if needed) so that the resulting string has a given length.
35
+ * The padding is applied from the end of the current string.
36
+ *
37
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padEnd)
34
38
  *
35
- * @param maxLength The length of the resulting string once the current string has been padded.
36
- * If this parameter is smaller than the current string's length, the current string will be returned as it is.
39
+ * @param targetLength The length of the resulting string once the current `str` has been padded.
40
+ * If the value is less than or equal to `str.length`, then `str` is returned as-is.
37
41
  *
38
- * @param fillString The string to pad the current string with.
39
- * If this string is too long, it will be truncated and the left-most part will be applied.
40
- * The default value for this parameter is " " (U+0020).
42
+ * @param padString The string to pad the current `str` with.
43
+ * If `padString` is too long to stay within `targetLength`, it will be truncated from the end.
44
+ * The default value is the space character (U+0020).
41
45
  */
42
- padEnd(maxLength: number, fillString?: string): string;
46
+ padEnd(targetLength: number, padString?: string): string;
43
47
  }
@@ -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
 
@@ -169,15 +169,15 @@ declare namespace Intl {
169
169
  format(value: number, unit: RelativeTimeFormatUnit): string;
170
170
 
171
171
  /**
172
- * Returns an array of objects representing the relative time format in parts that can be used for custom locale-aware formatting.
172
+ * Returns an array of objects representing the relative time format in parts that can be used for custom locale-aware formatting.
173
173
  *
174
- * @param value - Numeric value to use in the internationalized relative time message
174
+ * @param value - Numeric value to use in the internationalized relative time message
175
175
  *
176
- * @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.
176
+ * @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.
177
177
  *
178
- * @throws `RangeError` if `unit` was given something other than `unit` possible values
178
+ * @throws `RangeError` if `unit` was given something other than `unit` possible values
179
179
  *
180
- * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts).
180
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts).
181
181
  */
182
182
  formatToParts(value: number, unit: RelativeTimeFormatUnit): RelativeTimeFormatPart[];
183
183
 
@@ -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
@@ -416,8 +416,8 @@ interface String {
416
416
  charAt(pos: number): string;
417
417
 
418
418
  /**
419
- * Returns the Unicode value of the character at the specified location.
420
- * @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.
419
+ * Returns the Unicode value of the character at the specified location, or NaN if the index is out of bounds.
420
+ * @param index The zero-based index of the desired character.
421
421
  */
422
422
  charCodeAt(index: number): number;
423
423
 
@@ -563,19 +563,19 @@ interface Number {
563
563
 
564
564
  /**
565
565
  * Returns a string representing a number in fixed-point notation.
566
- * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
566
+ * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 100, inclusive.
567
567
  */
568
568
  toFixed(fractionDigits?: number): string;
569
569
 
570
570
  /**
571
571
  * Returns a string containing a number represented in exponential notation.
572
- * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
572
+ * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 100, inclusive.
573
573
  */
574
574
  toExponential(fractionDigits?: number): string;
575
575
 
576
576
  /**
577
577
  * Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
578
- * @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
578
+ * @param precision Number of significant digits. Must be in the range 1 - 100, inclusive.
579
579
  */
580
580
  toPrecision(precision?: number): string;
581
581
 
@@ -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
+ }