@@ -260,7 +260,7 @@ declare var AbortSignal: {
260260 *
261261 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static)
262262 */
263- any ( signals : AbortSignal [ ] ) : AbortSignal ;
263+ any ( signals : Iterable < AbortSignal > ) : AbortSignal ;
264264} ;
265265
266266/**
@@ -766,7 +766,7 @@ interface MessageEvent<T = any> extends Event {
766766 */
767767 readonly source : MessageEventSource | null ;
768768 /** @deprecated */
769- initMessageEvent ( type : string , bubbles ?: boolean , cancelable ?: boolean , data ?: any , origin ?: string , lastEventId ?: string , source ?: MessageEventSource | null , ports ?: MessagePort [ ] ) : void ;
769+ initMessageEvent ( type : string , bubbles ?: boolean , cancelable ?: boolean , data ?: any , origin ?: string , lastEventId ?: string , source ?: MessageEventSource | null , ports ?: Iterable < MessagePort > ) : void ;
770770}
771771
772772declare var MessageEvent : {
@@ -899,6 +899,10 @@ declare var ReadableByteStreamController: {
899899 new ( ) : ReadableByteStreamController ;
900900} ;
901901
902+
903+ interface ReadableStreamAsyncIterator < T > extends AsyncIteratorObject < T , BuiltinIteratorReturn , unknown > {
904+ [ Symbol . asyncIterator ] ( ) : ReadableStreamAsyncIterator < T > ;
905+ }
902906/**
903907 * The **`ReadableStream`** interface of the Streams API represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object.
904908 *
@@ -943,6 +947,8 @@ interface ReadableStream<R = any> {
943947 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee)
944948 */
945949 tee ( ) : [ ReadableStream < R > , ReadableStream < R > ] ;
950+ [ Symbol . asyncIterator ] ( options ?: ReadableStreamIteratorOptions ) : ReadableStreamAsyncIterator < R > ;
951+ values ( options ?: ReadableStreamIteratorOptions ) : ReadableStreamAsyncIterator < R > ;
946952}
947953
948954declare var ReadableStream : {
@@ -1351,6 +1357,10 @@ declare var URL: {
13511357 parse ( url : string | URL , base ?: string | URL ) : URL | null ;
13521358} ;
13531359
1360+
1361+ interface URLSearchParamsIterator < T > extends IteratorObject < T , BuiltinIteratorReturn , unknown > {
1362+ [ Symbol . iterator ] ( ) : URLSearchParamsIterator < T > ;
1363+ }
13541364/**
13551365 * The **`URLSearchParams`** interface defines utility methods to work with the query string of a URL.
13561366 *
@@ -1407,11 +1417,18 @@ interface URLSearchParams {
14071417 sort ( ) : void ;
14081418 toString ( ) : string ;
14091419 forEach ( callbackfn : ( value : string , key : string , parent : URLSearchParams ) => void , thisArg ?: any ) : void ;
1420+ [ Symbol . iterator ] ( ) : URLSearchParamsIterator < [ string , string ] > ;
1421+ /** Returns an array of key, value pairs for every entry in the search params. */
1422+ entries ( ) : URLSearchParamsIterator < [ string , string ] > ;
1423+ /** Returns a list of keys in the search params. */
1424+ keys ( ) : URLSearchParamsIterator < string > ;
1425+ /** Returns a list of values in the search params. */
1426+ values ( ) : URLSearchParamsIterator < string > ;
14101427}
14111428
14121429declare var URLSearchParams : {
14131430 prototype : URLSearchParams ;
1414- new ( init ?: string [ ] [ ] | Record < string , string > | string | URLSearchParams ) : URLSearchParams ;
1431+ new ( init ?: Iterable < string [ ] > | Record < string , string > | string ) : URLSearchParams ;
14151432} ;
14161433
14171434/**
@@ -1584,7 +1601,7 @@ declare namespace WebAssembly {
15841601
15851602 var Exception : {
15861603 prototype : Exception ;
1587- new ( exceptionTag : Tag , payload : any [ ] , options ?: ExceptionOptions ) : Exception ;
1604+ new ( exceptionTag : Tag , payload : Iterable < any > , options ?: ExceptionOptions ) : Exception ;
15881605 } ;
15891606
15901607 /**
@@ -1917,7 +1934,7 @@ interface Console {
19171934 *
19181935 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static)
19191936 */
1920- table ( tabularData ?: any , properties ?: string [ ] ) : void ;
1937+ table ( tabularData ?: any , properties ?: Iterable < string > ) : void ;
19211938 /**
19221939 * The **`console.time()`** static method starts a timer you can use to track how long an operation takes. You give each timer a unique name, and may have up to 10,000 timers running on a given page. When you call console.timeEnd() with the same name, the browser will output the time, in milliseconds, that elapsed since the timer was started.
19231940 *
@@ -2038,41 +2055,3 @@ type Transferable = MessagePort | ReadableStream | WritableStream | TransformStr
20382055type CompressionFormat = "deflate" | "deflate-raw" | "gzip" ;
20392056type ReadableStreamReaderMode = "byob" ;
20402057type ReadableStreamType = "bytes" ;
2041-
2042-
2043- /////////////////////////////
2044- /// AudioWorklet Iterable APIs
2045- /////////////////////////////
2046-
2047- interface MessageEvent < T = any > {
2048- /** @deprecated */
2049- initMessageEvent ( type : string , bubbles ?: boolean , cancelable ?: boolean , data ?: any , origin ?: string , lastEventId ?: string , source ?: MessageEventSource | null , ports ?: Iterable < MessagePort > ) : void ;
2050- }
2051-
2052- interface URLSearchParamsIterator < T > extends IteratorObject < T , BuiltinIteratorReturn , unknown > {
2053- [ Symbol . iterator ] ( ) : URLSearchParamsIterator < T > ;
2054- }
2055-
2056- interface URLSearchParams {
2057- [ Symbol . iterator ] ( ) : URLSearchParamsIterator < [ string , string ] > ;
2058- /** Returns an array of key, value pairs for every entry in the search params. */
2059- entries ( ) : URLSearchParamsIterator < [ string , string ] > ;
2060- /** Returns a list of keys in the search params. */
2061- keys ( ) : URLSearchParamsIterator < string > ;
2062- /** Returns a list of values in the search params. */
2063- values ( ) : URLSearchParamsIterator < string > ;
2064- }
2065-
2066-
2067- /////////////////////////////
2068- /// AudioWorklet Async Iterable APIs
2069- /////////////////////////////
2070-
2071- interface ReadableStreamAsyncIterator < T > extends AsyncIteratorObject < T , BuiltinIteratorReturn , unknown > {
2072- [ Symbol . asyncIterator ] ( ) : ReadableStreamAsyncIterator < T > ;
2073- }
2074-
2075- interface ReadableStream < R = any > {
2076- [ Symbol . asyncIterator ] ( options ?: ReadableStreamIteratorOptions ) : ReadableStreamAsyncIterator < R > ;
2077- values ( options ?: ReadableStreamIteratorOptions ) : ReadableStreamAsyncIterator < R > ;
2078- }
0 commit comments