@types/audioworklet 0.0.37 → 0.0.39

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/README.md CHANGED
@@ -28,4 +28,4 @@ This project does not respect semantic versioning as almost every change could p
28
28
 
29
29
  ## Deploy Metadata
30
30
 
31
- You can read what changed in version 0.0.37 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Faudioworklet%400.0.37.
31
+ You can read what changed in version 0.0.39 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Faudioworklet%400.0.39.
package/index.d.ts CHANGED
@@ -169,11 +169,23 @@ interface UnderlyingSource<R = any> {
169
169
  type?: ReadableStreamType;
170
170
  }
171
171
 
172
- /** A controller object that allows you to abort one or more DOM requests as and when desired. */
172
+ /**
173
+ * A controller object that allows you to abort one or more DOM requests as and when desired.
174
+ *
175
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController)
176
+ */
173
177
  interface AbortController {
174
- /** Returns the AbortSignal object associated with this object. */
178
+ /**
179
+ * Returns the AbortSignal object associated with this object.
180
+ *
181
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal)
182
+ */
175
183
  readonly signal: AbortSignal;
176
- /** Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. */
184
+ /**
185
+ * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
186
+ *
187
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort)
188
+ */
177
189
  abort(reason?: any): void;
178
190
  }
179
191
 
@@ -186,12 +198,23 @@ interface AbortSignalEventMap {
186
198
  "abort": Event;
187
199
  }
188
200
 
189
- /** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
201
+ /**
202
+ * A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object.
203
+ *
204
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal)
205
+ */
190
206
  interface AbortSignal extends EventTarget {
191
- /** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */
207
+ /**
208
+ * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
209
+ *
210
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted)
211
+ */
192
212
  readonly aborted: boolean;
213
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */
193
214
  onabort: ((this: AbortSignal, ev: Event) => any) | null;
215
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) */
194
216
  readonly reason: any;
217
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) */
195
218
  throwIfAborted(): void;
196
219
  addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
197
220
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -202,13 +225,19 @@ interface AbortSignal extends EventTarget {
202
225
  declare var AbortSignal: {
203
226
  prototype: AbortSignal;
204
227
  new(): AbortSignal;
228
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort) */
205
229
  // abort(reason?: any): AbortSignal; - To be re-added in the future
206
230
  };
207
231
 
232
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope) */
208
233
  interface AudioWorkletGlobalScope extends WorkletGlobalScope {
234
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope/currentFrame) */
209
235
  readonly currentFrame: number;
236
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope/currentTime) */
210
237
  readonly currentTime: number;
238
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope/sampleRate) */
211
239
  readonly sampleRate: number;
240
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope/registerProcessor) */
212
241
  registerProcessor(name: string, processorCtor: AudioWorkletProcessorConstructor): void;
213
242
  }
214
243
 
@@ -217,7 +246,9 @@ declare var AudioWorkletGlobalScope: {
217
246
  new(): AudioWorkletGlobalScope;
218
247
  };
219
248
 
249
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletProcessor) */
220
250
  interface AudioWorkletProcessor {
251
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletProcessor/port) */
221
252
  readonly port: MessagePort;
222
253
  }
223
254
 
@@ -230,9 +261,14 @@ interface AudioWorkletProcessorImpl extends AudioWorkletProcessor {
230
261
  process(inputs: Float32Array[][], outputs: Float32Array[][], parameters: Record<string, Float32Array>): boolean;
231
262
  }
232
263
 
233
- /** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */
264
+ /**
265
+ * This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams.
266
+ *
267
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy)
268
+ */
234
269
  interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
235
270
  readonly highWaterMark: number;
271
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */
236
272
  readonly size: QueuingStrategySize<ArrayBufferView>;
237
273
  }
238
274
 
@@ -241,9 +277,23 @@ declare var ByteLengthQueuingStrategy: {
241
277
  new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
242
278
  };
243
279
 
244
- /** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */
280
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */
281
+ interface CompressionStream extends GenericTransformStream {
282
+ }
283
+
284
+ declare var CompressionStream: {
285
+ prototype: CompressionStream;
286
+ new(format: string): CompressionStream;
287
+ };
288
+
289
+ /**
290
+ * This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams.
291
+ *
292
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy)
293
+ */
245
294
  interface CountQueuingStrategy extends QueuingStrategy {
246
295
  readonly highWaterMark: number;
296
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */
247
297
  readonly size: QueuingStrategySize;
248
298
  }
249
299
 
@@ -252,10 +302,19 @@ declare var CountQueuingStrategy: {
252
302
  new(init: QueuingStrategyInit): CountQueuingStrategy;
253
303
  };
254
304
 
305
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */
255
306
  interface CustomEvent<T = any> extends Event {
256
- /** Returns any custom data event was created with. Typically used for synthetic events. */
307
+ /**
308
+ * Returns any custom data event was created with. Typically used for synthetic events.
309
+ *
310
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)
311
+ */
257
312
  readonly detail: T;
258
- /** @deprecated */
313
+ /**
314
+ * @deprecated
315
+ *
316
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent)
317
+ */
259
318
  initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
260
319
  }
261
320
 
@@ -264,11 +323,21 @@ declare var CustomEvent: {
264
323
  new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
265
324
  };
266
325
 
267
- /** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
326
+ /**
327
+ * An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API.
328
+ *
329
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException)
330
+ */
268
331
  interface DOMException extends Error {
269
- /** @deprecated */
332
+ /**
333
+ * @deprecated
334
+ *
335
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
336
+ */
270
337
  readonly code: number;
338
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */
271
339
  readonly message: string;
340
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */
272
341
  readonly name: string;
273
342
  readonly INDEX_SIZE_ERR: 1;
274
343
  readonly DOMSTRING_SIZE_ERR: 2;
@@ -327,12 +396,30 @@ declare var DOMException: {
327
396
  readonly DATA_CLONE_ERR: 25;
328
397
  };
329
398
 
330
- /** Events providing information related to errors in scripts or in files. */
399
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */
400
+ interface DecompressionStream extends GenericTransformStream {
401
+ }
402
+
403
+ declare var DecompressionStream: {
404
+ prototype: DecompressionStream;
405
+ new(format: string): DecompressionStream;
406
+ };
407
+
408
+ /**
409
+ * Events providing information related to errors in scripts or in files.
410
+ *
411
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent)
412
+ */
331
413
  interface ErrorEvent extends Event {
414
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */
332
415
  readonly colno: number;
416
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */
333
417
  readonly error: any;
418
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */
334
419
  readonly filename: string;
420
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */
335
421
  readonly lineno: number;
422
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */
336
423
  readonly message: string;
337
424
  }
338
425
 
@@ -341,43 +428,119 @@ declare var ErrorEvent: {
341
428
  new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
342
429
  };
343
430
 
344
- /** An event which takes place in the DOM. */
431
+ /**
432
+ * An event which takes place in the DOM.
433
+ *
434
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event)
435
+ */
345
436
  interface Event {
346
- /** Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. */
437
+ /**
438
+ * Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.
439
+ *
440
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles)
441
+ */
347
442
  readonly bubbles: boolean;
348
- /** @deprecated */
443
+ /**
444
+ * @deprecated
445
+ *
446
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble)
447
+ */
349
448
  cancelBubble: boolean;
350
- /** Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. */
449
+ /**
450
+ * Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.
451
+ *
452
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable)
453
+ */
351
454
  readonly cancelable: boolean;
352
- /** Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. */
455
+ /**
456
+ * Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.
457
+ *
458
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed)
459
+ */
353
460
  readonly composed: boolean;
354
- /** Returns the object whose event listener's callback is currently being invoked. */
461
+ /**
462
+ * Returns the object whose event listener's callback is currently being invoked.
463
+ *
464
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget)
465
+ */
355
466
  readonly currentTarget: EventTarget | null;
356
- /** Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. */
467
+ /**
468
+ * Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
469
+ *
470
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented)
471
+ */
357
472
  readonly defaultPrevented: boolean;
358
- /** Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. */
473
+ /**
474
+ * Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.
475
+ *
476
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase)
477
+ */
359
478
  readonly eventPhase: number;
360
- /** Returns true if event was dispatched by the user agent, and false otherwise. */
479
+ /**
480
+ * Returns true if event was dispatched by the user agent, and false otherwise.
481
+ *
482
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
483
+ */
361
484
  readonly isTrusted: boolean;
362
- /** @deprecated */
485
+ /**
486
+ * @deprecated
487
+ *
488
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)
489
+ */
363
490
  returnValue: boolean;
364
- /** @deprecated */
491
+ /**
492
+ * @deprecated
493
+ *
494
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement)
495
+ */
365
496
  readonly srcElement: EventTarget | null;
366
- /** Returns the object to which event is dispatched (its target). */
497
+ /**
498
+ * Returns the object to which event is dispatched (its target).
499
+ *
500
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)
501
+ */
367
502
  readonly target: EventTarget | null;
368
- /** Returns the event's timestamp as the number of milliseconds measured relative to the time origin. */
503
+ /**
504
+ * Returns the event's timestamp as the number of milliseconds measured relative to the time origin.
505
+ *
506
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp)
507
+ */
369
508
  readonly timeStamp: DOMHighResTimeStamp;
370
- /** Returns the type of event, e.g. "click", "hashchange", or "submit". */
509
+ /**
510
+ * Returns the type of event, e.g. "click", "hashchange", or "submit".
511
+ *
512
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type)
513
+ */
371
514
  readonly type: string;
372
- /** Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget. */
515
+ /**
516
+ * Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget.
517
+ *
518
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath)
519
+ */
373
520
  composedPath(): EventTarget[];
374
- /** @deprecated */
521
+ /**
522
+ * @deprecated
523
+ *
524
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent)
525
+ */
375
526
  initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
376
- /** If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. */
527
+ /**
528
+ * If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.
529
+ *
530
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault)
531
+ */
377
532
  preventDefault(): void;
378
- /** Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. */
533
+ /**
534
+ * Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.
535
+ *
536
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation)
537
+ */
379
538
  stopImmediatePropagation(): void;
380
- /** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */
539
+ /**
540
+ * When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
541
+ *
542
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation)
543
+ */
381
544
  stopPropagation(): void;
382
545
  readonly NONE: 0;
383
546
  readonly CAPTURING_PHASE: 1;
@@ -402,7 +565,11 @@ interface EventListenerObject {
402
565
  handleEvent(object: Event): void;
403
566
  }
404
567
 
405
- /** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */
568
+ /**
569
+ * EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them.
570
+ *
571
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget)
572
+ */
406
573
  interface EventTarget {
407
574
  /**
408
575
  * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
@@ -418,11 +585,21 @@ interface EventTarget {
418
585
  * If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
419
586
  *
420
587
  * The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
588
+ *
589
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
421
590
  */
422
591
  addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
423
- /** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */
592
+ /**
593
+ * Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
594
+ *
595
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
596
+ */
424
597
  dispatchEvent(event: Event): boolean;
425
- /** Removes the event listener in target's event listener list with the same type, callback, and options. */
598
+ /**
599
+ * Removes the event listener in target's event listener list with the same type, callback, and options.
600
+ *
601
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
602
+ */
426
603
  removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
427
604
  }
428
605
 
@@ -432,23 +609,53 @@ declare var EventTarget: {
432
609
  };
433
610
 
434
611
  interface GenericTransformStream {
612
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
435
613
  readonly readable: ReadableStream;
614
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/writable) */
436
615
  readonly writable: WritableStream;
437
616
  }
438
617
 
439
- /** A message received by a target object. */
618
+ /**
619
+ * A message received by a target object.
620
+ *
621
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent)
622
+ */
440
623
  interface MessageEvent<T = any> extends Event {
441
- /** Returns the data of the message. */
624
+ /**
625
+ * Returns the data of the message.
626
+ *
627
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data)
628
+ */
442
629
  readonly data: T;
443
- /** Returns the last event ID string, for server-sent events. */
630
+ /**
631
+ * Returns the last event ID string, for server-sent events.
632
+ *
633
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId)
634
+ */
444
635
  readonly lastEventId: string;
445
- /** Returns the origin of the message, for server-sent events and cross-document messaging. */
636
+ /**
637
+ * Returns the origin of the message, for server-sent events and cross-document messaging.
638
+ *
639
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin)
640
+ */
446
641
  readonly origin: string;
447
- /** Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. */
642
+ /**
643
+ * Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.
644
+ *
645
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports)
646
+ */
448
647
  readonly ports: ReadonlyArray<MessagePort>;
449
- /** Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects. */
648
+ /**
649
+ * Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects.
650
+ *
651
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source)
652
+ */
450
653
  readonly source: MessageEventSource | null;
451
- /** @deprecated */
654
+ /**
655
+ * @deprecated
656
+ *
657
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)
658
+ */
452
659
  initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
453
660
  }
454
661
 
@@ -462,20 +669,36 @@ interface MessagePortEventMap {
462
669
  "messageerror": MessageEvent;
463
670
  }
464
671
 
465
- /** This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. */
672
+ /**
673
+ * This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other.
674
+ *
675
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort)
676
+ */
466
677
  interface MessagePort extends EventTarget {
678
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/message_event) */
467
679
  onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
680
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/messageerror_event) */
468
681
  onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
469
- /** Disconnects the port, so that it is no longer active. */
682
+ /**
683
+ * Disconnects the port, so that it is no longer active.
684
+ *
685
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close)
686
+ */
470
687
  close(): void;
471
688
  /**
472
689
  * Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
473
690
  *
474
691
  * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
692
+ *
693
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage)
475
694
  */
476
695
  postMessage(message: any, transfer: Transferable[]): void;
477
696
  postMessage(message: any, options?: StructuredSerializeOptions): void;
478
- /** Begins dispatching messages received on the port. */
697
+ /**
698
+ * Begins dispatching messages received on the port.
699
+ *
700
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/start)
701
+ */
479
702
  start(): void;
480
703
  addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
481
704
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -488,8 +711,11 @@ declare var MessagePort: {
488
711
  new(): MessagePort;
489
712
  };
490
713
 
714
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent) */
491
715
  interface PromiseRejectionEvent extends Event {
716
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise) */
492
717
  readonly promise: Promise<any>;
718
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason) */
493
719
  readonly reason: any;
494
720
  }
495
721
 
@@ -498,11 +724,17 @@ declare var PromiseRejectionEvent: {
498
724
  new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
499
725
  };
500
726
 
727
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController) */
501
728
  interface ReadableByteStreamController {
729
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest) */
502
730
  readonly byobRequest: ReadableStreamBYOBRequest | null;
731
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize) */
503
732
  readonly desiredSize: number | null;
733
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close) */
504
734
  close(): void;
735
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue) */
505
736
  enqueue(chunk: ArrayBufferView): void;
737
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error) */
506
738
  error(e?: any): void;
507
739
  }
508
740
 
@@ -511,15 +743,25 @@ declare var ReadableByteStreamController: {
511
743
  new(): ReadableByteStreamController;
512
744
  };
513
745
 
514
- /** This Streams API interface 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. */
746
+ /**
747
+ * This Streams API interface 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.
748
+ *
749
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)
750
+ */
515
751
  interface ReadableStream<R = any> {
752
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked) */
516
753
  readonly locked: boolean;
754
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel) */
517
755
  cancel(reason?: any): Promise<void>;
756
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) */
518
757
  getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
519
758
  getReader(): ReadableStreamDefaultReader<R>;
520
759
  getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
760
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough) */
521
761
  pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
762
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo) */
522
763
  pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
764
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee) */
523
765
  tee(): [ReadableStream<R>, ReadableStream<R>];
524
766
  }
525
767
 
@@ -530,8 +772,11 @@ declare var ReadableStream: {
530
772
  new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
531
773
  };
532
774
 
775
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */
533
776
  interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
777
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */
534
778
  read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
779
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */
535
780
  releaseLock(): void;
536
781
  }
537
782
 
@@ -540,9 +785,13 @@ declare var ReadableStreamBYOBReader: {
540
785
  new(stream: ReadableStream): ReadableStreamBYOBReader;
541
786
  };
542
787
 
788
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */
543
789
  interface ReadableStreamBYOBRequest {
790
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) */
544
791
  readonly view: ArrayBufferView | null;
792
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) */
545
793
  respond(bytesWritten: number): void;
794
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) */
546
795
  respondWithNewView(view: ArrayBufferView): void;
547
796
  }
548
797
 
@@ -551,10 +800,15 @@ declare var ReadableStreamBYOBRequest: {
551
800
  new(): ReadableStreamBYOBRequest;
552
801
  };
553
802
 
803
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController) */
554
804
  interface ReadableStreamDefaultController<R = any> {
805
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize) */
555
806
  readonly desiredSize: number | null;
807
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close) */
556
808
  close(): void;
809
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue) */
557
810
  enqueue(chunk?: R): void;
811
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error) */
558
812
  error(e?: any): void;
559
813
  }
560
814
 
@@ -563,8 +817,11 @@ declare var ReadableStreamDefaultController: {
563
817
  new(): ReadableStreamDefaultController;
564
818
  };
565
819
 
820
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader) */
566
821
  interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
822
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read) */
567
823
  read(): Promise<ReadableStreamReadResult<R>>;
824
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock) */
568
825
  releaseLock(): void;
569
826
  }
570
827
 
@@ -574,11 +831,17 @@ declare var ReadableStreamDefaultReader: {
574
831
  };
575
832
 
576
833
  interface ReadableStreamGenericReader {
834
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/closed) */
577
835
  readonly closed: Promise<undefined>;
836
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/cancel) */
578
837
  cancel(reason?: any): Promise<void>;
579
838
  }
580
839
 
581
- /** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc. A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. */
840
+ /**
841
+ * A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc. A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays.
842
+ *
843
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)
844
+ */
582
845
  interface TextDecoder extends TextDecoderCommon {
583
846
  /**
584
847
  * Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments.
@@ -592,6 +855,8 @@ interface TextDecoder extends TextDecoderCommon {
592
855
  * ```
593
856
  *
594
857
  * If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
858
+ *
859
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode)
595
860
  */
596
861
  decode(input?: BufferSource, options?: TextDecodeOptions): string;
597
862
  }
@@ -602,14 +867,27 @@ declare var TextDecoder: {
602
867
  };
603
868
 
604
869
  interface TextDecoderCommon {
605
- /** Returns encoding's name, lowercased. */
870
+ /**
871
+ * Returns encoding's name, lowercased.
872
+ *
873
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/encoding)
874
+ */
606
875
  readonly encoding: string;
607
- /** Returns true if error mode is "fatal", otherwise false. */
876
+ /**
877
+ * Returns true if error mode is "fatal", otherwise false.
878
+ *
879
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/fatal)
880
+ */
608
881
  readonly fatal: boolean;
609
- /** Returns the value of ignore BOM. */
882
+ /**
883
+ * Returns the value of ignore BOM.
884
+ *
885
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/ignoreBOM)
886
+ */
610
887
  readonly ignoreBOM: boolean;
611
888
  }
612
889
 
890
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream) */
613
891
  interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
614
892
  readonly readable: ReadableStream<string>;
615
893
  readonly writable: WritableStream<BufferSource>;
@@ -620,11 +898,23 @@ declare var TextDecoderStream: {
620
898
  new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
621
899
  };
622
900
 
623
- /** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. */
901
+ /**
902
+ * TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays.
903
+ *
904
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
905
+ */
624
906
  interface TextEncoder extends TextEncoderCommon {
625
- /** Returns the result of running UTF-8's encoder. */
907
+ /**
908
+ * Returns the result of running UTF-8's encoder.
909
+ *
910
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
911
+ */
626
912
  encode(input?: string): Uint8Array;
627
- /** Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination. */
913
+ /**
914
+ * Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination.
915
+ *
916
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)
917
+ */
628
918
  encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
629
919
  }
630
920
 
@@ -634,10 +924,15 @@ declare var TextEncoder: {
634
924
  };
635
925
 
636
926
  interface TextEncoderCommon {
637
- /** Returns "utf-8". */
927
+ /**
928
+ * Returns "utf-8".
929
+ *
930
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encoding)
931
+ */
638
932
  readonly encoding: string;
639
933
  }
640
934
 
935
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream) */
641
936
  interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
642
937
  readonly readable: ReadableStream<Uint8Array>;
643
938
  readonly writable: WritableStream<string>;
@@ -648,8 +943,11 @@ declare var TextEncoderStream: {
648
943
  new(): TextEncoderStream;
649
944
  };
650
945
 
946
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream) */
651
947
  interface TransformStream<I = any, O = any> {
948
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable) */
652
949
  readonly readable: ReadableStream<O>;
950
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable) */
653
951
  readonly writable: WritableStream<I>;
654
952
  }
655
953
 
@@ -658,10 +956,15 @@ declare var TransformStream: {
658
956
  new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
659
957
  };
660
958
 
959
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) */
661
960
  interface TransformStreamDefaultController<O = any> {
961
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */
662
962
  readonly desiredSize: number | null;
963
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) */
663
964
  enqueue(chunk?: O): void;
965
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error) */
664
966
  error(reason?: any): void;
967
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate) */
665
968
  terminate(): void;
666
969
  }
667
970
 
@@ -670,21 +973,38 @@ declare var TransformStreamDefaultController: {
670
973
  new(): TransformStreamDefaultController;
671
974
  };
672
975
 
673
- /** The URL interface represents an object providing static methods used for creating object URLs. */
976
+ /**
977
+ * The URL interface represents an object providing static methods used for creating object URLs.
978
+ *
979
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL)
980
+ */
674
981
  interface URL {
982
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash) */
675
983
  hash: string;
984
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host) */
676
985
  host: string;
986
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname) */
677
987
  hostname: string;
988
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href) */
678
989
  href: string;
679
990
  toString(): string;
991
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin) */
680
992
  readonly origin: string;
993
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password) */
681
994
  password: string;
995
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname) */
682
996
  pathname: string;
997
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port) */
683
998
  port: string;
999
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol) */
684
1000
  protocol: string;
1001
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search) */
685
1002
  search: string;
1003
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams) */
686
1004
  readonly searchParams: URLSearchParams;
1005
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username) */
687
1006
  username: string;
1007
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON) */
688
1008
  toJSON(): string;
689
1009
  }
690
1010
 
@@ -693,19 +1013,45 @@ declare var URL: {
693
1013
  new(url: string | URL, base?: string | URL): URL;
694
1014
  };
695
1015
 
1016
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) */
696
1017
  interface URLSearchParams {
697
- /** Appends a specified key/value pair as a new search parameter. */
1018
+ /**
1019
+ * Appends a specified key/value pair as a new search parameter.
1020
+ *
1021
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/append)
1022
+ */
698
1023
  append(name: string, value: string): void;
699
- /** Deletes the given search parameter, and its associated value, from the list of all search parameters. */
1024
+ /**
1025
+ * Deletes the given search parameter, and its associated value, from the list of all search parameters.
1026
+ *
1027
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete)
1028
+ */
700
1029
  delete(name: string): void;
701
- /** Returns the first value associated to the given search parameter. */
1030
+ /**
1031
+ * Returns the first value associated to the given search parameter.
1032
+ *
1033
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/get)
1034
+ */
702
1035
  get(name: string): string | null;
703
- /** Returns all the values association with a given search parameter. */
1036
+ /**
1037
+ * Returns all the values association with a given search parameter.
1038
+ *
1039
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll)
1040
+ */
704
1041
  getAll(name: string): string[];
705
- /** Returns a Boolean indicating if such a search parameter exists. */
1042
+ /**
1043
+ * Returns a Boolean indicating if such a search parameter exists.
1044
+ *
1045
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)
1046
+ */
706
1047
  has(name: string): boolean;
707
- /** Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. */
1048
+ /**
1049
+ * Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.
1050
+ *
1051
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set)
1052
+ */
708
1053
  set(name: string, value: string): void;
1054
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort) */
709
1055
  sort(): void;
710
1056
  /** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */
711
1057
  toString(): string;
@@ -726,11 +1072,18 @@ declare var WorkletGlobalScope: {
726
1072
  new(): WorkletGlobalScope;
727
1073
  };
728
1074
 
729
- /** This Streams API interface provides a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. */
1075
+ /**
1076
+ * This Streams API interface provides a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing.
1077
+ *
1078
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream)
1079
+ */
730
1080
  interface WritableStream<W = any> {
1081
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked) */
731
1082
  readonly locked: boolean;
1083
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort) */
732
1084
  abort(reason?: any): Promise<void>;
733
1085
  close(): Promise<void>;
1086
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter) */
734
1087
  getWriter(): WritableStreamDefaultWriter<W>;
735
1088
  }
736
1089
 
@@ -739,9 +1092,15 @@ declare var WritableStream: {
739
1092
  new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
740
1093
  };
741
1094
 
742
- /** This Streams API interface represents a controller allowing control of a WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */
1095
+ /**
1096
+ * This Streams API interface represents a controller allowing control of a WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate.
1097
+ *
1098
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController)
1099
+ */
743
1100
  interface WritableStreamDefaultController {
1101
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal) */
744
1102
  readonly signal: AbortSignal;
1103
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) */
745
1104
  error(e?: any): void;
746
1105
  }
747
1106
 
@@ -750,14 +1109,25 @@ declare var WritableStreamDefaultController: {
750
1109
  new(): WritableStreamDefaultController;
751
1110
  };
752
1111
 
753
- /** This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink. */
1112
+ /**
1113
+ * This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink.
1114
+ *
1115
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter)
1116
+ */
754
1117
  interface WritableStreamDefaultWriter<W = any> {
1118
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed) */
755
1119
  readonly closed: Promise<undefined>;
1120
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize) */
756
1121
  readonly desiredSize: number | null;
1122
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready) */
757
1123
  readonly ready: Promise<undefined>;
1124
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort) */
758
1125
  abort(reason?: any): Promise<void>;
1126
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close) */
759
1127
  close(): Promise<void>;
1128
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock) */
760
1129
  releaseLock(): void;
1130
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write) */
761
1131
  write(chunk?: W): Promise<void>;
762
1132
  }
763
1133
 
@@ -766,26 +1136,46 @@ declare var WritableStreamDefaultWriter: {
766
1136
  new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
767
1137
  };
768
1138
 
1139
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console) */
769
1140
  interface Console {
1141
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert) */
770
1142
  assert(condition?: boolean, ...data: any[]): void;
1143
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear) */
771
1144
  clear(): void;
1145
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count) */
772
1146
  count(label?: string): void;
1147
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset) */
773
1148
  countReset(label?: string): void;
1149
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug) */
774
1150
  debug(...data: any[]): void;
1151
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir) */
775
1152
  dir(item?: any, options?: any): void;
1153
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml) */
776
1154
  dirxml(...data: any[]): void;
1155
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error) */
777
1156
  error(...data: any[]): void;
1157
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group) */
778
1158
  group(...data: any[]): void;
1159
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed) */
779
1160
  groupCollapsed(...data: any[]): void;
1161
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd) */
780
1162
  groupEnd(): void;
1163
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info) */
781
1164
  info(...data: any[]): void;
1165
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log) */
782
1166
  log(...data: any[]): void;
1167
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table) */
783
1168
  table(tabularData?: any, properties?: string[]): void;
1169
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time) */
784
1170
  time(label?: string): void;
1171
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd) */
785
1172
  timeEnd(label?: string): void;
1173
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog) */
786
1174
  timeLog(label?: string, ...data: any[]): void;
787
1175
  timeStamp(label?: string): void;
1176
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace) */
788
1177
  trace(...data: any[]): void;
1178
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn) */
789
1179
  warn(...data: any[]): void;
790
1180
  }
791
1181
 
@@ -801,8 +1191,11 @@ declare namespace WebAssembly {
801
1191
  (message?: string): CompileError;
802
1192
  };
803
1193
 
1194
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global) */
804
1195
  interface Global {
1196
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/value) */
805
1197
  value: any;
1198
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/valueOf) */
806
1199
  valueOf(): any;
807
1200
  }
808
1201
 
@@ -811,7 +1204,9 @@ declare namespace WebAssembly {
811
1204
  new(descriptor: GlobalDescriptor, v?: any): Global;
812
1205
  };
813
1206
 
1207
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance) */
814
1208
  interface Instance {
1209
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance/exports) */
815
1210
  readonly exports: Exports;
816
1211
  }
817
1212
 
@@ -829,8 +1224,11 @@ declare namespace WebAssembly {
829
1224
  (message?: string): LinkError;
830
1225
  };
831
1226
 
1227
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory) */
832
1228
  interface Memory {
1229
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory/buffer) */
833
1230
  readonly buffer: ArrayBuffer;
1231
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory/grow) */
834
1232
  grow(delta: number): number;
835
1233
  }
836
1234
 
@@ -839,14 +1237,18 @@ declare namespace WebAssembly {
839
1237
  new(descriptor: MemoryDescriptor): Memory;
840
1238
  };
841
1239
 
1240
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module) */
842
1241
  interface Module {
843
1242
  }
844
1243
 
845
1244
  var Module: {
846
1245
  prototype: Module;
847
1246
  new(bytes: BufferSource): Module;
1247
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module/customSections) */
848
1248
  customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
1249
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module/exports) */
849
1250
  exports(moduleObject: Module): ModuleExportDescriptor[];
1251
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module/imports) */
850
1252
  imports(moduleObject: Module): ModuleImportDescriptor[];
851
1253
  };
852
1254
 
@@ -859,10 +1261,15 @@ declare namespace WebAssembly {
859
1261
  (message?: string): RuntimeError;
860
1262
  };
861
1263
 
1264
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table) */
862
1265
  interface Table {
1266
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/length) */
863
1267
  readonly length: number;
1268
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/get) */
864
1269
  get(index: number): any;
1270
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/grow) */
865
1271
  grow(delta: number, value?: any): number;
1272
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/set) */
866
1273
  set(index: number, value?: any): void;
867
1274
  }
868
1275
 
@@ -912,9 +1319,12 @@ declare namespace WebAssembly {
912
1319
  type ImportValue = ExportValue | number;
913
1320
  type Imports = Record<string, ModuleImports>;
914
1321
  type ModuleImports = Record<string, ImportValue>;
1322
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compile) */
915
1323
  function compile(bytes: BufferSource): Promise<Module>;
1324
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/instantiate) */
916
1325
  function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
917
1326
  function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
1327
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/validate) */
918
1328
  function validate(bytes: BufferSource): boolean;
919
1329
  }
920
1330
 
@@ -966,9 +1376,13 @@ interface UnderlyingSourceStartCallback<R> {
966
1376
  (controller: ReadableStreamController<R>): any;
967
1377
  }
968
1378
 
1379
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope/currentFrame) */
969
1380
  declare var currentFrame: number;
1381
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope/currentTime) */
970
1382
  declare var currentTime: number;
1383
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope/sampleRate) */
971
1384
  declare var sampleRate: number;
1385
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope/registerProcessor) */
972
1386
  declare function registerProcessor(name: string, processorCtor: AudioWorkletProcessorConstructor): void;
973
1387
  type BufferSource = ArrayBufferView | ArrayBuffer;
974
1388
  type DOMHighResTimeStamp = number;
package/iterable.d.ts CHANGED
@@ -3,7 +3,11 @@
3
3
  /////////////////////////////
4
4
 
5
5
  interface MessageEvent<T = any> {
6
- /** @deprecated */
6
+ /**
7
+ * @deprecated
8
+ *
9
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)
10
+ */
7
11
  initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
8
12
  }
9
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/audioworklet",
3
- "version": "0.0.37",
3
+ "version": "0.0.39",
4
4
  "description": "Types for the global scope of Audio Worklets",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],