typescript
Advanced tools
Comparing version 5.6.0-dev.20240719 to 5.6.0-dev.20240720
@@ -24,11 +24,11 @@ /*! ***************************************************************************** | ||
interface FileSystemDirectoryHandle { | ||
[Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>; | ||
entries(): AsyncIterableIterator<[string, FileSystemHandle]>; | ||
keys(): AsyncIterableIterator<string>; | ||
values(): AsyncIterableIterator<FileSystemHandle>; | ||
[Symbol.asyncIterator](): AsyncBuiltinIterator<[string, FileSystemHandle], BuiltinIteratorReturn>; | ||
entries(): AsyncBuiltinIterator<[string, FileSystemHandle], BuiltinIteratorReturn>; | ||
keys(): AsyncBuiltinIterator<string, BuiltinIteratorReturn>; | ||
values(): AsyncBuiltinIterator<FileSystemHandle, BuiltinIteratorReturn>; | ||
} | ||
interface ReadableStream<R = any> { | ||
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>; | ||
values(options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>; | ||
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): AsyncBuiltinIterator<R, BuiltinIteratorReturn>; | ||
values(options?: ReadableStreamIteratorOptions): AsyncBuiltinIterator<R, BuiltinIteratorReturn>; | ||
} |
@@ -44,32 +44,32 @@ /*! ***************************************************************************** | ||
interface CSSKeyframesRule { | ||
[Symbol.iterator](): IterableIterator<CSSKeyframeRule>; | ||
[Symbol.iterator](): BuiltinIterator<CSSKeyframeRule, BuiltinIteratorReturn>; | ||
} | ||
interface CSSNumericArray { | ||
[Symbol.iterator](): IterableIterator<CSSNumericValue>; | ||
entries(): IterableIterator<[number, CSSNumericValue]>; | ||
keys(): IterableIterator<number>; | ||
values(): IterableIterator<CSSNumericValue>; | ||
[Symbol.iterator](): BuiltinIterator<CSSNumericValue, BuiltinIteratorReturn>; | ||
entries(): BuiltinIterator<[number, CSSNumericValue], BuiltinIteratorReturn>; | ||
keys(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
values(): BuiltinIterator<CSSNumericValue, BuiltinIteratorReturn>; | ||
} | ||
interface CSSRuleList { | ||
[Symbol.iterator](): IterableIterator<CSSRule>; | ||
[Symbol.iterator](): BuiltinIterator<CSSRule, BuiltinIteratorReturn>; | ||
} | ||
interface CSSStyleDeclaration { | ||
[Symbol.iterator](): IterableIterator<string>; | ||
[Symbol.iterator](): BuiltinIterator<string, BuiltinIteratorReturn>; | ||
} | ||
interface CSSTransformValue { | ||
[Symbol.iterator](): IterableIterator<CSSTransformComponent>; | ||
entries(): IterableIterator<[number, CSSTransformComponent]>; | ||
keys(): IterableIterator<number>; | ||
values(): IterableIterator<CSSTransformComponent>; | ||
[Symbol.iterator](): BuiltinIterator<CSSTransformComponent, BuiltinIteratorReturn>; | ||
entries(): BuiltinIterator<[number, CSSTransformComponent], BuiltinIteratorReturn>; | ||
keys(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
values(): BuiltinIterator<CSSTransformComponent, BuiltinIteratorReturn>; | ||
} | ||
interface CSSUnparsedValue { | ||
[Symbol.iterator](): IterableIterator<CSSUnparsedSegment>; | ||
entries(): IterableIterator<[number, CSSUnparsedSegment]>; | ||
keys(): IterableIterator<number>; | ||
values(): IterableIterator<CSSUnparsedSegment>; | ||
[Symbol.iterator](): BuiltinIterator<CSSUnparsedSegment, BuiltinIteratorReturn>; | ||
entries(): BuiltinIterator<[number, CSSUnparsedSegment], BuiltinIteratorReturn>; | ||
keys(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
values(): BuiltinIterator<CSSUnparsedSegment, BuiltinIteratorReturn>; | ||
} | ||
@@ -96,18 +96,18 @@ | ||
interface DOMRectList { | ||
[Symbol.iterator](): IterableIterator<DOMRect>; | ||
[Symbol.iterator](): BuiltinIterator<DOMRect, BuiltinIteratorReturn>; | ||
} | ||
interface DOMStringList { | ||
[Symbol.iterator](): IterableIterator<string>; | ||
[Symbol.iterator](): BuiltinIterator<string, BuiltinIteratorReturn>; | ||
} | ||
interface DOMTokenList { | ||
[Symbol.iterator](): IterableIterator<string>; | ||
entries(): IterableIterator<[number, string]>; | ||
keys(): IterableIterator<number>; | ||
values(): IterableIterator<string>; | ||
[Symbol.iterator](): BuiltinIterator<string, BuiltinIteratorReturn>; | ||
entries(): BuiltinIterator<[number, string], BuiltinIteratorReturn>; | ||
keys(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
values(): BuiltinIterator<string, BuiltinIteratorReturn>; | ||
} | ||
interface DataTransferItemList { | ||
[Symbol.iterator](): IterableIterator<DataTransferItem>; | ||
[Symbol.iterator](): BuiltinIterator<DataTransferItem, BuiltinIteratorReturn>; | ||
} | ||
@@ -119,3 +119,3 @@ | ||
interface FileList { | ||
[Symbol.iterator](): IterableIterator<File>; | ||
[Symbol.iterator](): BuiltinIterator<File, BuiltinIteratorReturn>; | ||
} | ||
@@ -127,39 +127,39 @@ | ||
interface FormData { | ||
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>; | ||
[Symbol.iterator](): BuiltinIterator<[string, FormDataEntryValue], BuiltinIteratorReturn>; | ||
/** Returns an array of key, value pairs for every entry in the list. */ | ||
entries(): IterableIterator<[string, FormDataEntryValue]>; | ||
entries(): BuiltinIterator<[string, FormDataEntryValue], BuiltinIteratorReturn>; | ||
/** Returns a list of keys in the list. */ | ||
keys(): IterableIterator<string>; | ||
keys(): BuiltinIterator<string, BuiltinIteratorReturn>; | ||
/** Returns a list of values in the list. */ | ||
values(): IterableIterator<FormDataEntryValue>; | ||
values(): BuiltinIterator<FormDataEntryValue, BuiltinIteratorReturn>; | ||
} | ||
interface HTMLAllCollection { | ||
[Symbol.iterator](): IterableIterator<Element>; | ||
[Symbol.iterator](): BuiltinIterator<Element, BuiltinIteratorReturn>; | ||
} | ||
interface HTMLCollectionBase { | ||
[Symbol.iterator](): IterableIterator<Element>; | ||
[Symbol.iterator](): BuiltinIterator<Element, BuiltinIteratorReturn>; | ||
} | ||
interface HTMLCollectionOf<T extends Element> { | ||
[Symbol.iterator](): IterableIterator<T>; | ||
[Symbol.iterator](): BuiltinIterator<T, BuiltinIteratorReturn>; | ||
} | ||
interface HTMLFormElement { | ||
[Symbol.iterator](): IterableIterator<Element>; | ||
[Symbol.iterator](): BuiltinIterator<Element, BuiltinIteratorReturn>; | ||
} | ||
interface HTMLSelectElement { | ||
[Symbol.iterator](): IterableIterator<HTMLOptionElement>; | ||
[Symbol.iterator](): BuiltinIterator<HTMLOptionElement, BuiltinIteratorReturn>; | ||
} | ||
interface Headers { | ||
[Symbol.iterator](): IterableIterator<[string, string]>; | ||
[Symbol.iterator](): BuiltinIterator<[string, string], BuiltinIteratorReturn>; | ||
/** Returns an iterator allowing to go through all key/value pairs contained in this object. */ | ||
entries(): IterableIterator<[string, string]>; | ||
entries(): BuiltinIterator<[string, string], BuiltinIteratorReturn>; | ||
/** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */ | ||
keys(): IterableIterator<string>; | ||
keys(): BuiltinIterator<string, BuiltinIteratorReturn>; | ||
/** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */ | ||
values(): IterableIterator<string>; | ||
values(): BuiltinIterator<string, BuiltinIteratorReturn>; | ||
} | ||
@@ -205,10 +205,10 @@ | ||
interface MediaKeyStatusMap { | ||
[Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>; | ||
entries(): IterableIterator<[BufferSource, MediaKeyStatus]>; | ||
keys(): IterableIterator<BufferSource>; | ||
values(): IterableIterator<MediaKeyStatus>; | ||
[Symbol.iterator](): BuiltinIterator<[BufferSource, MediaKeyStatus], BuiltinIteratorReturn>; | ||
entries(): BuiltinIterator<[BufferSource, MediaKeyStatus], BuiltinIteratorReturn>; | ||
keys(): BuiltinIterator<BufferSource, BuiltinIteratorReturn>; | ||
values(): BuiltinIterator<MediaKeyStatus, BuiltinIteratorReturn>; | ||
} | ||
interface MediaList { | ||
[Symbol.iterator](): IterableIterator<string>; | ||
[Symbol.iterator](): BuiltinIterator<string, BuiltinIteratorReturn>; | ||
} | ||
@@ -222,7 +222,7 @@ | ||
interface MimeTypeArray { | ||
[Symbol.iterator](): IterableIterator<MimeType>; | ||
[Symbol.iterator](): BuiltinIterator<MimeType, BuiltinIteratorReturn>; | ||
} | ||
interface NamedNodeMap { | ||
[Symbol.iterator](): IterableIterator<Attr>; | ||
[Symbol.iterator](): BuiltinIterator<Attr, BuiltinIteratorReturn>; | ||
} | ||
@@ -242,27 +242,27 @@ | ||
interface NodeList { | ||
[Symbol.iterator](): IterableIterator<Node>; | ||
[Symbol.iterator](): BuiltinIterator<Node, BuiltinIteratorReturn>; | ||
/** Returns an array of key, value pairs for every entry in the list. */ | ||
entries(): IterableIterator<[number, Node]>; | ||
entries(): BuiltinIterator<[number, Node], BuiltinIteratorReturn>; | ||
/** Returns an list of keys in the list. */ | ||
keys(): IterableIterator<number>; | ||
keys(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
/** Returns an list of values in the list. */ | ||
values(): IterableIterator<Node>; | ||
values(): BuiltinIterator<Node, BuiltinIteratorReturn>; | ||
} | ||
interface NodeListOf<TNode extends Node> { | ||
[Symbol.iterator](): IterableIterator<TNode>; | ||
[Symbol.iterator](): BuiltinIterator<TNode, BuiltinIteratorReturn>; | ||
/** Returns an array of key, value pairs for every entry in the list. */ | ||
entries(): IterableIterator<[number, TNode]>; | ||
entries(): BuiltinIterator<[number, TNode], BuiltinIteratorReturn>; | ||
/** Returns an list of keys in the list. */ | ||
keys(): IterableIterator<number>; | ||
keys(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
/** Returns an list of values in the list. */ | ||
values(): IterableIterator<TNode>; | ||
values(): BuiltinIterator<TNode, BuiltinIteratorReturn>; | ||
} | ||
interface Plugin { | ||
[Symbol.iterator](): IterableIterator<MimeType>; | ||
[Symbol.iterator](): BuiltinIterator<MimeType, BuiltinIteratorReturn>; | ||
} | ||
interface PluginArray { | ||
[Symbol.iterator](): IterableIterator<Plugin>; | ||
[Symbol.iterator](): BuiltinIterator<Plugin, BuiltinIteratorReturn>; | ||
} | ||
@@ -279,42 +279,42 @@ | ||
interface SVGLengthList { | ||
[Symbol.iterator](): IterableIterator<SVGLength>; | ||
[Symbol.iterator](): BuiltinIterator<SVGLength, BuiltinIteratorReturn>; | ||
} | ||
interface SVGNumberList { | ||
[Symbol.iterator](): IterableIterator<SVGNumber>; | ||
[Symbol.iterator](): BuiltinIterator<SVGNumber, BuiltinIteratorReturn>; | ||
} | ||
interface SVGPointList { | ||
[Symbol.iterator](): IterableIterator<DOMPoint>; | ||
[Symbol.iterator](): BuiltinIterator<DOMPoint, BuiltinIteratorReturn>; | ||
} | ||
interface SVGStringList { | ||
[Symbol.iterator](): IterableIterator<string>; | ||
[Symbol.iterator](): BuiltinIterator<string, BuiltinIteratorReturn>; | ||
} | ||
interface SVGTransformList { | ||
[Symbol.iterator](): IterableIterator<SVGTransform>; | ||
[Symbol.iterator](): BuiltinIterator<SVGTransform, BuiltinIteratorReturn>; | ||
} | ||
interface SourceBufferList { | ||
[Symbol.iterator](): IterableIterator<SourceBuffer>; | ||
[Symbol.iterator](): BuiltinIterator<SourceBuffer, BuiltinIteratorReturn>; | ||
} | ||
interface SpeechRecognitionResult { | ||
[Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>; | ||
[Symbol.iterator](): BuiltinIterator<SpeechRecognitionAlternative, BuiltinIteratorReturn>; | ||
} | ||
interface SpeechRecognitionResultList { | ||
[Symbol.iterator](): IterableIterator<SpeechRecognitionResult>; | ||
[Symbol.iterator](): BuiltinIterator<SpeechRecognitionResult, BuiltinIteratorReturn>; | ||
} | ||
interface StylePropertyMapReadOnly { | ||
[Symbol.iterator](): IterableIterator<[string, Iterable<CSSStyleValue>]>; | ||
entries(): IterableIterator<[string, Iterable<CSSStyleValue>]>; | ||
keys(): IterableIterator<string>; | ||
values(): IterableIterator<Iterable<CSSStyleValue>>; | ||
[Symbol.iterator](): BuiltinIterator<[string, Iterable<CSSStyleValue>], BuiltinIteratorReturn>; | ||
entries(): BuiltinIterator<[string, Iterable<CSSStyleValue>], BuiltinIteratorReturn>; | ||
keys(): BuiltinIterator<string, BuiltinIteratorReturn>; | ||
values(): BuiltinIterator<Iterable<CSSStyleValue>, BuiltinIteratorReturn>; | ||
} | ||
interface StyleSheetList { | ||
[Symbol.iterator](): IterableIterator<CSSStyleSheet>; | ||
[Symbol.iterator](): BuiltinIterator<CSSStyleSheet, BuiltinIteratorReturn>; | ||
} | ||
@@ -338,21 +338,21 @@ | ||
interface TextTrackCueList { | ||
[Symbol.iterator](): IterableIterator<TextTrackCue>; | ||
[Symbol.iterator](): BuiltinIterator<TextTrackCue, BuiltinIteratorReturn>; | ||
} | ||
interface TextTrackList { | ||
[Symbol.iterator](): IterableIterator<TextTrack>; | ||
[Symbol.iterator](): BuiltinIterator<TextTrack, BuiltinIteratorReturn>; | ||
} | ||
interface TouchList { | ||
[Symbol.iterator](): IterableIterator<Touch>; | ||
[Symbol.iterator](): BuiltinIterator<Touch, BuiltinIteratorReturn>; | ||
} | ||
interface URLSearchParams { | ||
[Symbol.iterator](): IterableIterator<[string, string]>; | ||
[Symbol.iterator](): BuiltinIterator<[string, string], BuiltinIteratorReturn>; | ||
/** Returns an array of key, value pairs for every entry in the search params. */ | ||
entries(): IterableIterator<[string, string]>; | ||
entries(): BuiltinIterator<[string, string], BuiltinIteratorReturn>; | ||
/** Returns a list of keys in the search params. */ | ||
keys(): IterableIterator<string>; | ||
keys(): BuiltinIterator<string, BuiltinIteratorReturn>; | ||
/** Returns a list of values in the search params. */ | ||
values(): IterableIterator<string>; | ||
values(): BuiltinIterator<string, BuiltinIteratorReturn>; | ||
} | ||
@@ -359,0 +359,0 @@ |
@@ -21,5 +21,5 @@ /*! ***************************************************************************** | ||
interface Generator<T = unknown, TReturn = any, TNext = unknown> extends Iterator<T, TReturn, TNext> { | ||
interface Generator<T = unknown, TReturn = any, TNext = any> extends BuiltinIterator<T, TReturn, TNext> { | ||
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places. | ||
next(...args: [] | [TNext]): IteratorResult<T, TReturn>; | ||
next(...[value]: [] | [TNext]): IteratorResult<T, TReturn>; | ||
return(value: TReturn): IteratorResult<T, TReturn>; | ||
@@ -26,0 +26,0 @@ throw(e: any): IteratorResult<T, TReturn>; |
@@ -41,5 +41,5 @@ /*! ***************************************************************************** | ||
interface Iterator<T, TReturn = any, TNext = undefined> { | ||
interface Iterator<T, TReturn = any, TNext = any> { | ||
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places. | ||
next(...args: [] | [TNext]): IteratorResult<T, TReturn>; | ||
next(...[value]: [] | [TNext]): IteratorResult<T, TReturn>; | ||
return?(value?: TReturn): IteratorResult<T, TReturn>; | ||
@@ -49,13 +49,19 @@ throw?(e?: any): IteratorResult<T, TReturn>; | ||
interface Iterable<T> { | ||
[Symbol.iterator](): Iterator<T>; | ||
interface Iterable<T, TReturn = any, TNext = any> { | ||
[Symbol.iterator](): Iterator<T, TReturn, TNext>; | ||
} | ||
interface IterableIterator<T> extends Iterator<T> { | ||
[Symbol.iterator](): IterableIterator<T>; | ||
interface IterableIterator<T, TReturn = any, TNext = any> extends Iterator<T, TReturn, TNext> { | ||
[Symbol.iterator](): IterableIterator<T, TReturn, TNext>; | ||
} | ||
interface BuiltinIterator<T, TReturn = any, TNext = any> extends Iterator<T, TReturn, TNext> { | ||
[Symbol.iterator](): BuiltinIterator<T, TReturn, TNext>; | ||
} | ||
type BuiltinIteratorReturn = intrinsic; | ||
interface Array<T> { | ||
/** Iterator */ | ||
[Symbol.iterator](): IterableIterator<T>; | ||
[Symbol.iterator](): BuiltinIterator<T, BuiltinIteratorReturn>; | ||
@@ -65,3 +71,3 @@ /** | ||
*/ | ||
entries(): IterableIterator<[number, T]>; | ||
entries(): BuiltinIterator<[number, T], BuiltinIteratorReturn>; | ||
@@ -71,3 +77,3 @@ /** | ||
*/ | ||
keys(): IterableIterator<number>; | ||
keys(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
@@ -77,3 +83,3 @@ /** | ||
*/ | ||
values(): IterableIterator<T>; | ||
values(): BuiltinIterator<T, BuiltinIteratorReturn>; | ||
} | ||
@@ -99,3 +105,3 @@ | ||
/** Iterator of values in the array. */ | ||
[Symbol.iterator](): IterableIterator<T>; | ||
[Symbol.iterator](): BuiltinIterator<T, BuiltinIteratorReturn>; | ||
@@ -105,3 +111,3 @@ /** | ||
*/ | ||
entries(): IterableIterator<[number, T]>; | ||
entries(): BuiltinIterator<[number, T], BuiltinIteratorReturn>; | ||
@@ -111,3 +117,3 @@ /** | ||
*/ | ||
keys(): IterableIterator<number>; | ||
keys(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
@@ -117,3 +123,3 @@ /** | ||
*/ | ||
values(): IterableIterator<T>; | ||
values(): BuiltinIterator<T, BuiltinIteratorReturn>; | ||
} | ||
@@ -123,3 +129,3 @@ | ||
/** Iterator */ | ||
[Symbol.iterator](): IterableIterator<any>; | ||
[Symbol.iterator](): BuiltinIterator<any, BuiltinIteratorReturn>; | ||
} | ||
@@ -129,3 +135,3 @@ | ||
/** Returns an iterable of entries in the map. */ | ||
[Symbol.iterator](): IterableIterator<[K, V]>; | ||
[Symbol.iterator](): BuiltinIterator<[K, V], BuiltinIteratorReturn>; | ||
@@ -135,3 +141,3 @@ /** | ||
*/ | ||
entries(): IterableIterator<[K, V]>; | ||
entries(): BuiltinIterator<[K, V], BuiltinIteratorReturn>; | ||
@@ -141,3 +147,3 @@ /** | ||
*/ | ||
keys(): IterableIterator<K>; | ||
keys(): BuiltinIterator<K, BuiltinIteratorReturn>; | ||
@@ -147,3 +153,3 @@ /** | ||
*/ | ||
values(): IterableIterator<V>; | ||
values(): BuiltinIterator<V, BuiltinIteratorReturn>; | ||
} | ||
@@ -153,3 +159,3 @@ | ||
/** Returns an iterable of entries in the map. */ | ||
[Symbol.iterator](): IterableIterator<[K, V]>; | ||
[Symbol.iterator](): BuiltinIterator<[K, V], BuiltinIteratorReturn>; | ||
@@ -159,3 +165,3 @@ /** | ||
*/ | ||
entries(): IterableIterator<[K, V]>; | ||
entries(): BuiltinIterator<[K, V], BuiltinIteratorReturn>; | ||
@@ -165,3 +171,3 @@ /** | ||
*/ | ||
keys(): IterableIterator<K>; | ||
keys(): BuiltinIterator<K, BuiltinIteratorReturn>; | ||
@@ -171,3 +177,3 @@ /** | ||
*/ | ||
values(): IterableIterator<V>; | ||
values(): BuiltinIterator<V, BuiltinIteratorReturn>; | ||
} | ||
@@ -188,11 +194,11 @@ | ||
/** Iterates over values in the set. */ | ||
[Symbol.iterator](): IterableIterator<T>; | ||
[Symbol.iterator](): BuiltinIterator<T, BuiltinIteratorReturn>; | ||
/** | ||
* Returns an iterable of [v,v] pairs for every value `v` in the set. | ||
*/ | ||
entries(): IterableIterator<[T, T]>; | ||
entries(): BuiltinIterator<[T, T], BuiltinIteratorReturn>; | ||
/** | ||
* Despite its name, returns an iterable of the values in the set. | ||
*/ | ||
keys(): IterableIterator<T>; | ||
keys(): BuiltinIterator<T, BuiltinIteratorReturn>; | ||
@@ -202,3 +208,3 @@ /** | ||
*/ | ||
values(): IterableIterator<T>; | ||
values(): BuiltinIterator<T, BuiltinIteratorReturn>; | ||
} | ||
@@ -208,3 +214,3 @@ | ||
/** Iterates over values in the set. */ | ||
[Symbol.iterator](): IterableIterator<T>; | ||
[Symbol.iterator](): BuiltinIterator<T, BuiltinIteratorReturn>; | ||
@@ -214,3 +220,3 @@ /** | ||
*/ | ||
entries(): IterableIterator<[T, T]>; | ||
entries(): BuiltinIterator<[T, T], BuiltinIteratorReturn>; | ||
@@ -220,3 +226,3 @@ /** | ||
*/ | ||
keys(): IterableIterator<T>; | ||
keys(): BuiltinIterator<T, BuiltinIteratorReturn>; | ||
@@ -226,3 +232,3 @@ /** | ||
*/ | ||
values(): IterableIterator<T>; | ||
values(): BuiltinIterator<T, BuiltinIteratorReturn>; | ||
} | ||
@@ -262,19 +268,19 @@ | ||
/** Iterator */ | ||
[Symbol.iterator](): IterableIterator<string>; | ||
[Symbol.iterator](): BuiltinIterator<string, BuiltinIteratorReturn>; | ||
} | ||
interface Int8Array { | ||
[Symbol.iterator](): IterableIterator<number>; | ||
[Symbol.iterator](): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
/** | ||
* Returns an array of key, value pairs for every entry in the array | ||
*/ | ||
entries(): IterableIterator<[number, number]>; | ||
entries(): BuiltinIterator<[number, number], BuiltinIteratorReturn>; | ||
/** | ||
* Returns an list of keys in the array | ||
*/ | ||
keys(): IterableIterator<number>; | ||
keys(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
/** | ||
* Returns an list of values in the array | ||
*/ | ||
values(): IterableIterator<number>; | ||
values(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
} | ||
@@ -295,15 +301,15 @@ | ||
interface Uint8Array { | ||
[Symbol.iterator](): IterableIterator<number>; | ||
[Symbol.iterator](): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
/** | ||
* Returns an array of key, value pairs for every entry in the array | ||
*/ | ||
entries(): IterableIterator<[number, number]>; | ||
entries(): BuiltinIterator<[number, number], BuiltinIteratorReturn>; | ||
/** | ||
* Returns an list of keys in the array | ||
*/ | ||
keys(): IterableIterator<number>; | ||
keys(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
/** | ||
* Returns an list of values in the array | ||
*/ | ||
values(): IterableIterator<number>; | ||
values(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
} | ||
@@ -324,7 +330,7 @@ | ||
interface Uint8ClampedArray { | ||
[Symbol.iterator](): IterableIterator<number>; | ||
[Symbol.iterator](): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
/** | ||
* Returns an array of key, value pairs for every entry in the array | ||
*/ | ||
entries(): IterableIterator<[number, number]>; | ||
entries(): BuiltinIterator<[number, number], BuiltinIteratorReturn>; | ||
@@ -334,3 +340,3 @@ /** | ||
*/ | ||
keys(): IterableIterator<number>; | ||
keys(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
@@ -340,3 +346,3 @@ /** | ||
*/ | ||
values(): IterableIterator<number>; | ||
values(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
} | ||
@@ -357,7 +363,7 @@ | ||
interface Int16Array { | ||
[Symbol.iterator](): IterableIterator<number>; | ||
[Symbol.iterator](): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
/** | ||
* Returns an array of key, value pairs for every entry in the array | ||
*/ | ||
entries(): IterableIterator<[number, number]>; | ||
entries(): BuiltinIterator<[number, number], BuiltinIteratorReturn>; | ||
@@ -367,3 +373,3 @@ /** | ||
*/ | ||
keys(): IterableIterator<number>; | ||
keys(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
@@ -373,3 +379,3 @@ /** | ||
*/ | ||
values(): IterableIterator<number>; | ||
values(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
} | ||
@@ -390,15 +396,15 @@ | ||
interface Uint16Array { | ||
[Symbol.iterator](): IterableIterator<number>; | ||
[Symbol.iterator](): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
/** | ||
* Returns an array of key, value pairs for every entry in the array | ||
*/ | ||
entries(): IterableIterator<[number, number]>; | ||
entries(): BuiltinIterator<[number, number], BuiltinIteratorReturn>; | ||
/** | ||
* Returns an list of keys in the array | ||
*/ | ||
keys(): IterableIterator<number>; | ||
keys(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
/** | ||
* Returns an list of values in the array | ||
*/ | ||
values(): IterableIterator<number>; | ||
values(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
} | ||
@@ -419,15 +425,15 @@ | ||
interface Int32Array { | ||
[Symbol.iterator](): IterableIterator<number>; | ||
[Symbol.iterator](): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
/** | ||
* Returns an array of key, value pairs for every entry in the array | ||
*/ | ||
entries(): IterableIterator<[number, number]>; | ||
entries(): BuiltinIterator<[number, number], BuiltinIteratorReturn>; | ||
/** | ||
* Returns an list of keys in the array | ||
*/ | ||
keys(): IterableIterator<number>; | ||
keys(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
/** | ||
* Returns an list of values in the array | ||
*/ | ||
values(): IterableIterator<number>; | ||
values(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
} | ||
@@ -448,15 +454,15 @@ | ||
interface Uint32Array { | ||
[Symbol.iterator](): IterableIterator<number>; | ||
[Symbol.iterator](): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
/** | ||
* Returns an array of key, value pairs for every entry in the array | ||
*/ | ||
entries(): IterableIterator<[number, number]>; | ||
entries(): BuiltinIterator<[number, number], BuiltinIteratorReturn>; | ||
/** | ||
* Returns an list of keys in the array | ||
*/ | ||
keys(): IterableIterator<number>; | ||
keys(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
/** | ||
* Returns an list of values in the array | ||
*/ | ||
values(): IterableIterator<number>; | ||
values(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
} | ||
@@ -477,15 +483,15 @@ | ||
interface Float32Array { | ||
[Symbol.iterator](): IterableIterator<number>; | ||
[Symbol.iterator](): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
/** | ||
* Returns an array of key, value pairs for every entry in the array | ||
*/ | ||
entries(): IterableIterator<[number, number]>; | ||
entries(): BuiltinIterator<[number, number], BuiltinIteratorReturn>; | ||
/** | ||
* Returns an list of keys in the array | ||
*/ | ||
keys(): IterableIterator<number>; | ||
keys(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
/** | ||
* Returns an list of values in the array | ||
*/ | ||
values(): IterableIterator<number>; | ||
values(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
} | ||
@@ -506,15 +512,15 @@ | ||
interface Float64Array { | ||
[Symbol.iterator](): IterableIterator<number>; | ||
[Symbol.iterator](): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
/** | ||
* Returns an array of key, value pairs for every entry in the array | ||
*/ | ||
entries(): IterableIterator<[number, number]>; | ||
entries(): BuiltinIterator<[number, number], BuiltinIteratorReturn>; | ||
/** | ||
* Returns an list of keys in the array | ||
*/ | ||
keys(): IterableIterator<number>; | ||
keys(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
/** | ||
* Returns an list of values in the array | ||
*/ | ||
values(): IterableIterator<number>; | ||
values(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
} | ||
@@ -521,0 +527,0 @@ |
@@ -21,5 +21,5 @@ /*! ***************************************************************************** | ||
interface AsyncGenerator<T = unknown, TReturn = any, TNext = unknown> extends AsyncIterator<T, TReturn, TNext> { | ||
interface AsyncGenerator<T = unknown, TReturn = any, TNext = any> extends AsyncBuiltinIterator<T, TReturn, TNext> { | ||
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places. | ||
next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>; | ||
next(...[value]: [] | [TNext]): Promise<IteratorResult<T, TReturn>>; | ||
return(value: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>; | ||
@@ -26,0 +26,0 @@ throw(e: any): Promise<IteratorResult<T, TReturn>>; |
@@ -30,5 +30,5 @@ /*! ***************************************************************************** | ||
interface AsyncIterator<T, TReturn = any, TNext = undefined> { | ||
interface AsyncIterator<T, TReturn = any, TNext = any> { | ||
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places. | ||
next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>; | ||
next(...[value]: [] | [TNext]): Promise<IteratorResult<T, TReturn>>; | ||
return?(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>; | ||
@@ -38,8 +38,12 @@ throw?(e?: any): Promise<IteratorResult<T, TReturn>>; | ||
interface AsyncIterable<T> { | ||
[Symbol.asyncIterator](): AsyncIterator<T>; | ||
interface AsyncIterable<T, TReturn = any, TNext = any> { | ||
[Symbol.asyncIterator](): AsyncIterator<T, TReturn, TNext>; | ||
} | ||
interface AsyncIterableIterator<T> extends AsyncIterator<T> { | ||
[Symbol.asyncIterator](): AsyncIterableIterator<T>; | ||
interface AsyncIterableIterator<T, TReturn = any, TNext = any> extends AsyncIterator<T, TReturn, TNext> { | ||
[Symbol.asyncIterator](): AsyncIterableIterator<T, TReturn, TNext>; | ||
} | ||
interface AsyncBuiltinIterator<T, TReturn = any, TNext = any> extends AsyncIterator<T, TReturn, TNext> { | ||
[Symbol.asyncIterator](): AsyncBuiltinIterator<T, TReturn, TNext>; | ||
} |
@@ -174,3 +174,3 @@ /*! ***************************************************************************** | ||
/** Yields index, value pairs for every entry in the array. */ | ||
entries(): IterableIterator<[number, bigint]>; | ||
entries(): BuiltinIterator<[number, bigint], BuiltinIteratorReturn>; | ||
@@ -260,3 +260,3 @@ /** | ||
/** Yields each index in the array. */ | ||
keys(): IterableIterator<number>; | ||
keys(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
@@ -383,5 +383,5 @@ /** | ||
/** Yields each value in the array. */ | ||
values(): IterableIterator<bigint>; | ||
values(): BuiltinIterator<bigint, BuiltinIteratorReturn>; | ||
[Symbol.iterator](): IterableIterator<bigint>; | ||
[Symbol.iterator](): BuiltinIterator<bigint, BuiltinIteratorReturn>; | ||
@@ -449,3 +449,3 @@ readonly [Symbol.toStringTag]: "BigInt64Array"; | ||
/** Yields index, value pairs for every entry in the array. */ | ||
entries(): IterableIterator<[number, bigint]>; | ||
entries(): BuiltinIterator<[number, bigint], BuiltinIteratorReturn>; | ||
@@ -535,3 +535,3 @@ /** | ||
/** Yields each index in the array. */ | ||
keys(): IterableIterator<number>; | ||
keys(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
@@ -658,5 +658,5 @@ /** | ||
/** Yields each value in the array. */ | ||
values(): IterableIterator<bigint>; | ||
values(): BuiltinIterator<bigint, BuiltinIteratorReturn>; | ||
[Symbol.iterator](): IterableIterator<bigint>; | ||
[Symbol.iterator](): BuiltinIterator<bigint, BuiltinIteratorReturn>; | ||
@@ -663,0 +663,0 @@ readonly [Symbol.toStringTag]: "BigUint64Array"; |
@@ -27,3 +27,3 @@ /*! ***************************************************************************** | ||
*/ | ||
matchAll(regexp: RegExp): IterableIterator<RegExpExecArray>; | ||
matchAll(regexp: RegExp): BuiltinIterator<RegExpExecArray, BuiltinIteratorReturn>; | ||
@@ -30,0 +30,0 @@ /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */ |
@@ -36,3 +36,3 @@ /*! ***************************************************************************** | ||
*/ | ||
[Symbol.matchAll](str: string): IterableIterator<RegExpMatchArray>; | ||
[Symbol.matchAll](str: string): BuiltinIterator<RegExpMatchArray, BuiltinIteratorReturn>; | ||
} |
@@ -58,3 +58,3 @@ /*! ***************************************************************************** | ||
/** Returns an iterator to iterate over the segments. */ | ||
[Symbol.iterator](): IterableIterator<SegmentData>; | ||
[Symbol.iterator](): BuiltinIterator<SegmentData, BuiltinIteratorReturn>; | ||
} | ||
@@ -61,0 +61,0 @@ |
@@ -29,1 +29,2 @@ /*! ***************************************************************************** | ||
/// <reference lib="esnext.string" /> | ||
/// <reference lib="esnext.iterator" /> |
@@ -24,11 +24,11 @@ /*! ***************************************************************************** | ||
interface FileSystemDirectoryHandle { | ||
[Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>; | ||
entries(): AsyncIterableIterator<[string, FileSystemHandle]>; | ||
keys(): AsyncIterableIterator<string>; | ||
values(): AsyncIterableIterator<FileSystemHandle>; | ||
[Symbol.asyncIterator](): AsyncBuiltinIterator<[string, FileSystemHandle], BuiltinIteratorReturn>; | ||
entries(): AsyncBuiltinIterator<[string, FileSystemHandle], BuiltinIteratorReturn>; | ||
keys(): AsyncBuiltinIterator<string, BuiltinIteratorReturn>; | ||
values(): AsyncBuiltinIterator<FileSystemHandle, BuiltinIteratorReturn>; | ||
} | ||
interface ReadableStream<R = any> { | ||
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>; | ||
values(options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>; | ||
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): AsyncBuiltinIterator<R, BuiltinIteratorReturn>; | ||
values(options?: ReadableStreamIteratorOptions): AsyncBuiltinIterator<R, BuiltinIteratorReturn>; | ||
} |
@@ -29,20 +29,20 @@ /*! ***************************************************************************** | ||
interface CSSNumericArray { | ||
[Symbol.iterator](): IterableIterator<CSSNumericValue>; | ||
entries(): IterableIterator<[number, CSSNumericValue]>; | ||
keys(): IterableIterator<number>; | ||
values(): IterableIterator<CSSNumericValue>; | ||
[Symbol.iterator](): BuiltinIterator<CSSNumericValue, BuiltinIteratorReturn>; | ||
entries(): BuiltinIterator<[number, CSSNumericValue], BuiltinIteratorReturn>; | ||
keys(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
values(): BuiltinIterator<CSSNumericValue, BuiltinIteratorReturn>; | ||
} | ||
interface CSSTransformValue { | ||
[Symbol.iterator](): IterableIterator<CSSTransformComponent>; | ||
entries(): IterableIterator<[number, CSSTransformComponent]>; | ||
keys(): IterableIterator<number>; | ||
values(): IterableIterator<CSSTransformComponent>; | ||
[Symbol.iterator](): BuiltinIterator<CSSTransformComponent, BuiltinIteratorReturn>; | ||
entries(): BuiltinIterator<[number, CSSTransformComponent], BuiltinIteratorReturn>; | ||
keys(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
values(): BuiltinIterator<CSSTransformComponent, BuiltinIteratorReturn>; | ||
} | ||
interface CSSUnparsedValue { | ||
[Symbol.iterator](): IterableIterator<CSSUnparsedSegment>; | ||
entries(): IterableIterator<[number, CSSUnparsedSegment]>; | ||
keys(): IterableIterator<number>; | ||
values(): IterableIterator<CSSUnparsedSegment>; | ||
[Symbol.iterator](): BuiltinIterator<CSSUnparsedSegment, BuiltinIteratorReturn>; | ||
entries(): BuiltinIterator<[number, CSSUnparsedSegment], BuiltinIteratorReturn>; | ||
keys(): BuiltinIterator<number, BuiltinIteratorReturn>; | ||
values(): BuiltinIterator<CSSUnparsedSegment, BuiltinIteratorReturn>; | ||
} | ||
@@ -66,7 +66,7 @@ | ||
interface DOMStringList { | ||
[Symbol.iterator](): IterableIterator<string>; | ||
[Symbol.iterator](): BuiltinIterator<string, BuiltinIteratorReturn>; | ||
} | ||
interface FileList { | ||
[Symbol.iterator](): IterableIterator<File>; | ||
[Symbol.iterator](): BuiltinIterator<File, BuiltinIteratorReturn>; | ||
} | ||
@@ -78,19 +78,19 @@ | ||
interface FormData { | ||
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>; | ||
[Symbol.iterator](): BuiltinIterator<[string, FormDataEntryValue], BuiltinIteratorReturn>; | ||
/** Returns an array of key, value pairs for every entry in the list. */ | ||
entries(): IterableIterator<[string, FormDataEntryValue]>; | ||
entries(): BuiltinIterator<[string, FormDataEntryValue], BuiltinIteratorReturn>; | ||
/** Returns a list of keys in the list. */ | ||
keys(): IterableIterator<string>; | ||
keys(): BuiltinIterator<string, BuiltinIteratorReturn>; | ||
/** Returns a list of values in the list. */ | ||
values(): IterableIterator<FormDataEntryValue>; | ||
values(): BuiltinIterator<FormDataEntryValue, BuiltinIteratorReturn>; | ||
} | ||
interface Headers { | ||
[Symbol.iterator](): IterableIterator<[string, string]>; | ||
[Symbol.iterator](): BuiltinIterator<[string, string], BuiltinIteratorReturn>; | ||
/** Returns an iterator allowing to go through all key/value pairs contained in this object. */ | ||
entries(): IterableIterator<[string, string]>; | ||
entries(): BuiltinIterator<[string, string], BuiltinIteratorReturn>; | ||
/** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */ | ||
keys(): IterableIterator<string>; | ||
keys(): BuiltinIterator<string, BuiltinIteratorReturn>; | ||
/** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */ | ||
values(): IterableIterator<string>; | ||
values(): BuiltinIterator<string, BuiltinIteratorReturn>; | ||
} | ||
@@ -124,6 +124,6 @@ | ||
interface StylePropertyMapReadOnly { | ||
[Symbol.iterator](): IterableIterator<[string, Iterable<CSSStyleValue>]>; | ||
entries(): IterableIterator<[string, Iterable<CSSStyleValue>]>; | ||
keys(): IterableIterator<string>; | ||
values(): IterableIterator<Iterable<CSSStyleValue>>; | ||
[Symbol.iterator](): BuiltinIterator<[string, Iterable<CSSStyleValue>], BuiltinIteratorReturn>; | ||
entries(): BuiltinIterator<[string, Iterable<CSSStyleValue>], BuiltinIteratorReturn>; | ||
keys(): BuiltinIterator<string, BuiltinIteratorReturn>; | ||
values(): BuiltinIterator<Iterable<CSSStyleValue>, BuiltinIteratorReturn>; | ||
} | ||
@@ -147,9 +147,9 @@ | ||
interface URLSearchParams { | ||
[Symbol.iterator](): IterableIterator<[string, string]>; | ||
[Symbol.iterator](): BuiltinIterator<[string, string], BuiltinIteratorReturn>; | ||
/** Returns an array of key, value pairs for every entry in the search params. */ | ||
entries(): IterableIterator<[string, string]>; | ||
entries(): BuiltinIterator<[string, string], BuiltinIteratorReturn>; | ||
/** Returns a list of keys in the search params. */ | ||
keys(): IterableIterator<string>; | ||
keys(): BuiltinIterator<string, BuiltinIteratorReturn>; | ||
/** Returns a list of values in the search params. */ | ||
values(): IterableIterator<string>; | ||
values(): BuiltinIterator<string, BuiltinIteratorReturn>; | ||
} | ||
@@ -156,0 +156,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://www.typescriptlang.org/", | ||
"version": "5.6.0-dev.20240719", | ||
"version": "5.6.0-dev.20240720", | ||
"license": "Apache-2.0", | ||
@@ -118,3 +118,3 @@ "description": "TypeScript is a language for application scale JavaScript development", | ||
}, | ||
"gitHead": "f8a7913c1e67cc7262c49b144a90b9d577a16fef" | ||
"gitHead": "903e82b368c8328dba95b70b21415e7a48339857" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21905869
121
87654