@@ -69,6 +69,9 @@ interface DataTransferItemList {
6969 [ Symbol . iterator ] ( ) : IterableIterator < DataTransferItem > ;
7070}
7171
72+ interface EventCounts extends ReadonlyMap < string , number > {
73+ }
74+
7275interface FileList {
7376 [ Symbol . iterator ] ( ) : IterableIterator < File > ;
7477}
@@ -78,17 +81,11 @@ interface FontFaceSet extends Set<FontFace> {
7881
7982interface FormData {
8083 [ Symbol . iterator ] ( ) : IterableIterator < [ string , FormDataEntryValue ] > ;
81- /**
82- * Returns an array of key, value pairs for every entry in the list.
83- */
84+ /** Returns an array of key, value pairs for every entry in the list. */
8485 entries ( ) : IterableIterator < [ string , FormDataEntryValue ] > ;
85- /**
86- * Returns a list of keys in the list.
87- */
86+ /** Returns a list of keys in the list. */
8887 keys ( ) : IterableIterator < string > ;
89- /**
90- * Returns a list of values in the list.
91- */
88+ /** Returns a list of values in the list. */
9289 values ( ) : IterableIterator < FormDataEntryValue > ;
9390}
9491
@@ -109,29 +106,21 @@ interface HTMLFormElement {
109106}
110107
111108interface HTMLSelectElement {
112- [ Symbol . iterator ] ( ) : IterableIterator < Element > ;
109+ [ Symbol . iterator ] ( ) : IterableIterator < HTMLOptionElement > ;
113110}
114111
115112interface Headers {
116113 [ Symbol . iterator ] ( ) : IterableIterator < [ string , string ] > ;
117- /**
118- * Returns an iterator allowing to go through all key/value pairs contained in this object.
119- */
114+ /** Returns an iterator allowing to go through all key/value pairs contained in this object. */
120115 entries ( ) : IterableIterator < [ string , string ] > ;
121- /**
122- * Returns an iterator allowing to go through all keys of the key/value pairs contained in this object.
123- */
116+ /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
124117 keys ( ) : IterableIterator < string > ;
125- /**
126- * Returns an iterator allowing to go through all values of the key/value pairs contained in this object.
127- */
118+ /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
128119 values ( ) : IterableIterator < string > ;
129120}
130121
131122interface IDBDatabase {
132- /**
133- * Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
134- */
123+ /** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
135124 transaction ( storeNames : string | Iterable < string > , mode ?: IDBTransactionMode ) : IDBTransaction ;
136125}
137126
@@ -144,6 +133,16 @@ interface IDBObjectStore {
144133 createIndex ( name : string , keyPath : string | Iterable < string > , options ?: IDBIndexParameters ) : IDBIndex ;
145134}
146135
136+ interface MIDIInputMap extends ReadonlyMap < string , MIDIInput > {
137+ }
138+
139+ interface MIDIOutput {
140+ send ( data : Iterable < number > , timestamp ?: DOMHighResTimeStamp ) : void ;
141+ }
142+
143+ interface MIDIOutputMap extends ReadonlyMap < string , MIDIOutput > {
144+ }
145+
147146interface MediaKeyStatusMap {
148147 [ Symbol . iterator ] ( ) : IterableIterator < [ BufferSource , MediaKeyStatus ] > ;
149148 entries ( ) : IterableIterator < [ BufferSource , MediaKeyStatus ] > ;
@@ -161,66 +160,52 @@ interface MessageEvent<T = any> {
161160}
162161
163162interface MimeTypeArray {
164- [ Symbol . iterator ] ( ) : IterableIterator < any > ;
163+ [ Symbol . iterator ] ( ) : IterableIterator < MimeType > ;
165164}
166165
167166interface NamedNodeMap {
168167 [ Symbol . iterator ] ( ) : IterableIterator < Attr > ;
169168}
170169
171170interface Navigator {
171+ /** Available only in secure contexts. */
172172 requestMediaKeySystemAccess ( keySystem : string , supportedConfigurations : Iterable < MediaKeySystemConfiguration > ) : Promise < MediaKeySystemAccess > ;
173173 vibrate ( pattern : Iterable < number > ) : boolean ;
174174}
175175
176176interface NodeList {
177177 [ Symbol . iterator ] ( ) : IterableIterator < Node > ;
178- /**
179- * Returns an array of key, value pairs for every entry in the list.
180- */
178+ /** Returns an array of key, value pairs for every entry in the list. */
181179 entries ( ) : IterableIterator < [ number , Node ] > ;
182- /**
183- * Returns an list of keys in the list.
184- */
180+ /** Returns an list of keys in the list. */
185181 keys ( ) : IterableIterator < number > ;
186- /**
187- * Returns an list of values in the list.
188- */
182+ /** Returns an list of values in the list. */
189183 values ( ) : IterableIterator < Node > ;
190184}
191185
192186interface NodeListOf < TNode extends Node > {
193187 [ Symbol . iterator ] ( ) : IterableIterator < TNode > ;
194- /**
195- * Returns an array of key, value pairs for every entry in the list.
196- */
188+ /** Returns an array of key, value pairs for every entry in the list. */
197189 entries ( ) : IterableIterator < [ number , TNode ] > ;
198- /**
199- * Returns an list of keys in the list.
200- */
190+ /** Returns an list of keys in the list. */
201191 keys ( ) : IterableIterator < number > ;
202- /**
203- * Returns an list of values in the list.
204- */
192+ /** Returns an list of values in the list. */
205193 values ( ) : IterableIterator < TNode > ;
206194}
207195
208196interface Plugin {
209- [ Symbol . iterator ] ( ) : IterableIterator < undefined > ;
197+ [ Symbol . iterator ] ( ) : IterableIterator < MimeType > ;
210198}
211199
212200interface PluginArray {
213- [ Symbol . iterator ] ( ) : IterableIterator < any > ;
201+ [ Symbol . iterator ] ( ) : IterableIterator < Plugin > ;
214202}
215203
216- interface RTCStatsReport extends ReadonlyMap < string , any > {
204+ interface RTCRtpTransceiver {
205+ setCodecPreferences ( codecs : Iterable < RTCRtpCodecCapability > ) : void ;
217206}
218207
219- interface ReadableStream < R = any > {
220- [ Symbol . iterator ] ( ) : IterableIterator < any > ;
221- entries ( ) : IterableIterator < [ number , any ] > ;
222- keys ( ) : IterableIterator < number > ;
223- values ( ) : IterableIterator < any > ;
208+ interface RTCStatsReport extends ReadonlyMap < string , any > {
224209}
225210
226211interface SVGLengthList {
@@ -261,10 +246,10 @@ interface StyleSheetList {
261246
262247interface SubtleCrypto {
263248 deriveKey ( algorithm : AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params , baseKey : CryptoKey , derivedKeyType : AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params , extractable : boolean , keyUsages : Iterable < KeyUsage > ) : Promise < CryptoKey > ;
264- generateKey ( algorithm : RsaHashedKeyGenParams | EcKeyGenParams , extractable : boolean , keyUsages : KeyUsage [ ] ) : Promise < CryptoKeyPair > ;
265- generateKey ( algorithm : AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params , extractable : boolean , keyUsages : KeyUsage [ ] ) : Promise < CryptoKey > ;
249+ generateKey ( algorithm : RsaHashedKeyGenParams | EcKeyGenParams , extractable : boolean , keyUsages : ReadonlyArray < KeyUsage > ) : Promise < CryptoKeyPair > ;
250+ generateKey ( algorithm : AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params , extractable : boolean , keyUsages : ReadonlyArray < KeyUsage > ) : Promise < CryptoKey > ;
266251 generateKey ( algorithm : AlgorithmIdentifier , extractable : boolean , keyUsages : Iterable < KeyUsage > ) : Promise < CryptoKeyPair | CryptoKey > ;
267- importKey ( format : "jwk" , keyData : JsonWebKey , algorithm : AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm , extractable : boolean , keyUsages : KeyUsage [ ] ) : Promise < CryptoKey > ;
252+ importKey ( format : "jwk" , keyData : JsonWebKey , algorithm : AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm , extractable : boolean , keyUsages : ReadonlyArray < KeyUsage > ) : Promise < CryptoKey > ;
268253 importKey ( format : Exclude < KeyFormat , "jwk" > , keyData : BufferSource , algorithm : AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm , extractable : boolean , keyUsages : Iterable < KeyUsage > ) : Promise < CryptoKey > ;
269254 unwrapKey ( format : KeyFormat , wrappedKey : BufferSource , unwrappingKey : CryptoKey , unwrapAlgorithm : AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams , unwrappedKeyAlgorithm : AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm , extractable : boolean , keyUsages : Iterable < KeyUsage > ) : Promise < CryptoKey > ;
270255}
@@ -283,24 +268,25 @@ interface TouchList {
283268
284269interface URLSearchParams {
285270 [ Symbol . iterator ] ( ) : IterableIterator < [ string , string ] > ;
286- /**
287- * Returns an array of key, value pairs for every entry in the search params.
288- */
271+ /** Returns an array of key, value pairs for every entry in the search params. */
289272 entries ( ) : IterableIterator < [ string , string ] > ;
290- /**
291- * Returns a list of keys in the search params.
292- */
273+ /** Returns a list of keys in the search params. */
293274 keys ( ) : IterableIterator < string > ;
294- /**
295- * Returns a list of values in the search params.
296- */
275+ /** Returns a list of values in the search params. */
297276 values ( ) : IterableIterator < string > ;
298277}
299278
300279interface WEBGL_draw_buffers {
301280 drawBuffersWEBGL ( buffers : Iterable < GLenum > ) : void ;
302281}
303282
283+ interface WEBGL_multi_draw {
284+ multiDrawArraysInstancedWEBGL ( mode : GLenum , firstsList : Int32Array | Iterable < GLint > , firstsOffset : GLuint , countsList : Int32Array | Iterable < GLsizei > , countsOffset : GLuint , instanceCountsList : Int32Array | Iterable < GLsizei > , instanceCountsOffset : GLuint , drawcount : GLsizei ) : void ;
285+ multiDrawArraysWEBGL ( mode : GLenum , firstsList : Int32Array | Iterable < GLint > , firstsOffset : GLuint , countsList : Int32Array | Iterable < GLsizei > , countsOffset : GLuint , drawcount : GLsizei ) : void ;
286+ multiDrawElementsInstancedWEBGL ( mode : GLenum , countsList : Int32Array | Iterable < GLint > , countsOffset : GLuint , type : GLenum , offsetsList : Int32Array | Iterable < GLsizei > , offsetsOffset : GLuint , instanceCountsList : Int32Array | Iterable < GLsizei > , instanceCountsOffset : GLuint , drawcount : GLsizei ) : void ;
287+ multiDrawElementsWEBGL ( mode : GLenum , countsList : Int32Array | Iterable < GLint > , countsOffset : GLuint , type : GLenum , offsetsList : Int32Array | Iterable < GLsizei > , offsetsOffset : GLuint , drawcount : GLsizei ) : void ;
288+ }
289+
304290interface WebGL2RenderingContextBase {
305291 clearBufferfv ( buffer : GLenum , drawbuffer : GLint , values : Iterable < GLfloat > , srcOffset ?: GLuint ) : void ;
306292 clearBufferiv ( buffer : GLenum , drawbuffer : GLint , values : Iterable < GLint > , srcOffset ?: GLuint ) : void ;
0 commit comments