@nubjs/types 0.9.5 → 0.9.6
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/common.d.ts +8 -6
- package/package.json +1 -1
package/common.d.ts
CHANGED
|
@@ -176,14 +176,16 @@ interface ImportMeta {
|
|
|
176
176
|
// future standard lib adds them. The one property member (`Symbol.metadata`) is
|
|
177
177
|
// byte-for-byte TypeScript's already-settled `lib.esnext.decorators` declaration.
|
|
178
178
|
|
|
179
|
-
// Iterator chunking/includes/join. `IteratorObject` is in
|
|
180
|
-
// when the ES2025 Iterator constructor is not selected, so
|
|
181
|
-
// these methods at the ES2024 target too. The versioned
|
|
182
|
-
// TypeScript's own Iterator constructor and base-helper
|
|
179
|
+
// Iterator chunking/includes/join (Stage 4, 2026-09). `IteratorObject` is in
|
|
180
|
+
// lib.es2015.iterable even when the ES2025 Iterator constructor is not selected, so
|
|
181
|
+
// built-in iterators gain these methods at the ES2024 target too. The versioned
|
|
182
|
+
// package entry point loads TypeScript's own Iterator constructor and base-helper
|
|
183
|
+
// declarations. The sizes and skip count are not coerced at runtime: a non-integral
|
|
184
|
+
// number is a TypeError.
|
|
183
185
|
interface IteratorObject<T, TReturn, TNext> {
|
|
184
186
|
chunks(chunkSize: number): IteratorObject<T[], undefined, unknown>;
|
|
185
|
-
windows(windowSize: number): IteratorObject<T[], undefined, unknown>;
|
|
186
|
-
includes(searchElement: T): boolean;
|
|
187
|
+
windows(windowSize: number, undersized?: "only-full" | "allow-partial"): IteratorObject<T[], undefined, unknown>;
|
|
188
|
+
includes(searchElement: T, skippedElements?: number): boolean;
|
|
187
189
|
join(separator?: string): string;
|
|
188
190
|
}
|
|
189
191
|
|