@typescript/typescript-darwin-x64 7.1.0-dev.20261008.1 → 7.1.0-dev.20261010.1

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.
@@ -21,5 +21,6 @@ and limitations under the License.
21
21
  /// <reference lib="esnext.sharedmemory" />
22
22
  /// <reference lib="esnext.temporal" />
23
23
  /// <reference lib="esnext.date" />
24
+ /// <reference lib="esnext.iterator" />
24
25
  /// <reference lib="esnext.modulesource" />
25
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
+ }
package/lib/tsc CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typescript/typescript-darwin-x64",
3
- "version": "7.1.0-dev.20261008.1",
3
+ "version": "7.1.0-dev.20261010.1",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Microsoft Corp.",
6
6
  "homepage": "https://www.typescriptlang.org/",
@@ -31,7 +31,7 @@
31
31
  "exports": {
32
32
  "./package.json": "./package.json"
33
33
  },
34
- "gitHead": "fed0bf24149fb1ed36039212648bafdafc1ea10e",
34
+ "gitHead": "aa8149273b23401f0a79a5f0384c42de51888693",
35
35
  "publishConfig": {
36
36
  "access": "public",
37
37
  "tag": "next"