@types/audioworklet 0.0.38 → 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.38 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Faudioworklet%400.0.38.
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,6 +277,7 @@ declare var ByteLengthQueuingStrategy: {
241
277
  new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
242
278
  };
243
279
 
280
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */
244
281
  interface CompressionStream extends GenericTransformStream {
245
282
  }
246
283
 
@@ -249,9 +286,14 @@ declare var CompressionStream: {
249
286
  new(format: string): CompressionStream;
250
287
  };
251
288
 
252
- /** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */
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
+ */
253
294
  interface CountQueuingStrategy extends QueuingStrategy {
254
295
  readonly highWaterMark: number;
296
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */
255
297
  readonly size: QueuingStrategySize;
256
298
  }
257
299
 
@@ -260,10 +302,19 @@ declare var CountQueuingStrategy: {
260
302
  new(init: QueuingStrategyInit): CountQueuingStrategy;
261
303
  };
262
304
 
305
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */
263
306
  interface CustomEvent<T = any> extends Event {
264
- /** 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
+ */
265
312
  readonly detail: T;
266
- /** @deprecated */
313
+ /**
314
+ * @deprecated
315
+ *
316
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent)
317
+ */
267
318
  initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
268
319
  }
269
320
 
@@ -272,11 +323,21 @@ declare var CustomEvent: {
272
323
  new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
273
324
  };
274
325
 
275
- /** 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
+ */
276
331
  interface DOMException extends Error {
277
- /** @deprecated */
332
+ /**
333
+ * @deprecated
334
+ *
335
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
336
+ */
278
337
  readonly code: number;
338
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */
279
339
  readonly message: string;
340
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */
280
341
  readonly name: string;
281
342
  readonly INDEX_SIZE_ERR: 1;
282
343
  readonly DOMSTRING_SIZE_ERR: 2;
@@ -335,6 +396,7 @@ declare var DOMException: {
335
396
  readonly DATA_CLONE_ERR: 25;
336
397
  };
337
398
 
399
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */
338
400
  interface DecompressionStream extends GenericTransformStream {
339
401
  }
340
402
 
@@ -343,12 +405,21 @@ declare var DecompressionStream: {
343
405
  new(format: string): DecompressionStream;
344
406
  };
345
407
 
346
- /** Events providing information related to errors in scripts or in files. */
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
+ */
347
413
  interface ErrorEvent extends Event {
414
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */
348
415
  readonly colno: number;
416
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */
349
417
  readonly error: any;
418
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */
350
419
  readonly filename: string;
420
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */
351
421
  readonly lineno: number;
422
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */
352
423
  readonly message: string;
353
424
  }
354
425
 
@@ -357,43 +428,119 @@ declare var ErrorEvent: {
357
428
  new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
358
429
  };
359
430
 
360
- /** 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
+ */
361
436
  interface Event {
362
- /** 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
+ */
363
442
  readonly bubbles: boolean;
364
- /** @deprecated */
443
+ /**
444
+ * @deprecated
445
+ *
446
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble)
447
+ */
365
448
  cancelBubble: boolean;
366
- /** 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
+ */
367
454
  readonly cancelable: boolean;
368
- /** 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
+ */
369
460
  readonly composed: boolean;
370
- /** 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
+ */
371
466
  readonly currentTarget: EventTarget | null;
372
- /** 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
+ */
373
472
  readonly defaultPrevented: boolean;
374
- /** 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
+ */
375
478
  readonly eventPhase: number;
376
- /** 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
+ */
377
484
  readonly isTrusted: boolean;
378
- /** @deprecated */
485
+ /**
486
+ * @deprecated
487
+ *
488
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)
489
+ */
379
490
  returnValue: boolean;
380
- /** @deprecated */
491
+ /**
492
+ * @deprecated
493
+ *
494
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement)
495
+ */
381
496
  readonly srcElement: EventTarget | null;
382
- /** 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
+ */
383
502
  readonly target: EventTarget | null;
384
- /** 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
+ */
385
508
  readonly timeStamp: DOMHighResTimeStamp;
386
- /** 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
+ */
387
514
  readonly type: string;
388
- /** 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
+ */
389
520
  composedPath(): EventTarget[];
390
- /** @deprecated */
521
+ /**
522
+ * @deprecated
523
+ *
524
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent)
525
+ */
391
526
  initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
392
- /** 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
+ */
393
532
  preventDefault(): void;
394
- /** 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
+ */
395
538
  stopImmediatePropagation(): void;
396
- /** 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
+ */
397
544
  stopPropagation(): void;
398
545
  readonly NONE: 0;
399
546
  readonly CAPTURING_PHASE: 1;
@@ -418,7 +565,11 @@ interface EventListenerObject {
418
565
  handleEvent(object: Event): void;
419
566
  }
420
567
 
421
- /** 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
+ */
422
573
  interface EventTarget {
423
574
  /**
424
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.
@@ -434,11 +585,21 @@ interface EventTarget {
434
585
  * If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
435
586
  *
436
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)
437
590
  */
438
591
  addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
439
- /** 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
+ */
440
597
  dispatchEvent(event: Event): boolean;
441
- /** 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
+ */
442
603
  removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
443
604
  }
444
605
 
@@ -448,23 +609,53 @@ declare var EventTarget: {
448
609
  };
449
610
 
450
611
  interface GenericTransformStream {
612
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
451
613
  readonly readable: ReadableStream;
614
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/writable) */
452
615
  readonly writable: WritableStream;
453
616
  }
454
617
 
455
- /** 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
+ */
456
623
  interface MessageEvent<T = any> extends Event {
457
- /** 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
+ */
458
629
  readonly data: T;
459
- /** 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
+ */
460
635
  readonly lastEventId: string;
461
- /** 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
+ */
462
641
  readonly origin: string;
463
- /** 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
+ */
464
647
  readonly ports: ReadonlyArray<MessagePort>;
465
- /** 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
+ */
466
653
  readonly source: MessageEventSource | null;
467
- /** @deprecated */
654
+ /**
655
+ * @deprecated
656
+ *
657
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)
658
+ */
468
659
  initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
469
660
  }
470
661
 
@@ -478,20 +669,36 @@ interface MessagePortEventMap {
478
669
  "messageerror": MessageEvent;
479
670
  }
480
671
 
481
- /** 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
+ */
482
677
  interface MessagePort extends EventTarget {
678
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/message_event) */
483
679
  onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
680
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/messageerror_event) */
484
681
  onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
485
- /** 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
+ */
486
687
  close(): void;
487
688
  /**
488
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.
489
690
  *
490
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)
491
694
  */
492
695
  postMessage(message: any, transfer: Transferable[]): void;
493
696
  postMessage(message: any, options?: StructuredSerializeOptions): void;
494
- /** 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
+ */
495
702
  start(): void;
496
703
  addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
497
704
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -504,8 +711,11 @@ declare var MessagePort: {
504
711
  new(): MessagePort;
505
712
  };
506
713
 
714
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent) */
507
715
  interface PromiseRejectionEvent extends Event {
716
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise) */
508
717
  readonly promise: Promise<any>;
718
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason) */
509
719
  readonly reason: any;
510
720
  }
511
721
 
@@ -514,11 +724,17 @@ declare var PromiseRejectionEvent: {
514
724
  new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
515
725
  };
516
726
 
727
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController) */
517
728
  interface ReadableByteStreamController {
729
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest) */
518
730
  readonly byobRequest: ReadableStreamBYOBRequest | null;
731
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize) */
519
732
  readonly desiredSize: number | null;
733
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close) */
520
734
  close(): void;
735
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue) */
521
736
  enqueue(chunk: ArrayBufferView): void;
737
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error) */
522
738
  error(e?: any): void;
523
739
  }
524
740
 
@@ -527,15 +743,25 @@ declare var ReadableByteStreamController: {
527
743
  new(): ReadableByteStreamController;
528
744
  };
529
745
 
530
- /** 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
+ */
531
751
  interface ReadableStream<R = any> {
752
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked) */
532
753
  readonly locked: boolean;
754
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel) */
533
755
  cancel(reason?: any): Promise<void>;
756
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) */
534
757
  getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
535
758
  getReader(): ReadableStreamDefaultReader<R>;
536
759
  getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
760
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough) */
537
761
  pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
762
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo) */
538
763
  pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
764
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee) */
539
765
  tee(): [ReadableStream<R>, ReadableStream<R>];
540
766
  }
541
767
 
@@ -546,8 +772,11 @@ declare var ReadableStream: {
546
772
  new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
547
773
  };
548
774
 
775
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */
549
776
  interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
777
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */
550
778
  read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
779
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */
551
780
  releaseLock(): void;
552
781
  }
553
782
 
@@ -556,9 +785,13 @@ declare var ReadableStreamBYOBReader: {
556
785
  new(stream: ReadableStream): ReadableStreamBYOBReader;
557
786
  };
558
787
 
788
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */
559
789
  interface ReadableStreamBYOBRequest {
790
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) */
560
791
  readonly view: ArrayBufferView | null;
792
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) */
561
793
  respond(bytesWritten: number): void;
794
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) */
562
795
  respondWithNewView(view: ArrayBufferView): void;
563
796
  }
564
797
 
@@ -567,10 +800,15 @@ declare var ReadableStreamBYOBRequest: {
567
800
  new(): ReadableStreamBYOBRequest;
568
801
  };
569
802
 
803
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController) */
570
804
  interface ReadableStreamDefaultController<R = any> {
805
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize) */
571
806
  readonly desiredSize: number | null;
807
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close) */
572
808
  close(): void;
809
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue) */
573
810
  enqueue(chunk?: R): void;
811
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error) */
574
812
  error(e?: any): void;
575
813
  }
576
814
 
@@ -579,8 +817,11 @@ declare var ReadableStreamDefaultController: {
579
817
  new(): ReadableStreamDefaultController;
580
818
  };
581
819
 
820
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader) */
582
821
  interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
822
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read) */
583
823
  read(): Promise<ReadableStreamReadResult<R>>;
824
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock) */
584
825
  releaseLock(): void;
585
826
  }
586
827
 
@@ -590,11 +831,17 @@ declare var ReadableStreamDefaultReader: {
590
831
  };
591
832
 
592
833
  interface ReadableStreamGenericReader {
834
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/closed) */
593
835
  readonly closed: Promise<undefined>;
836
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/cancel) */
594
837
  cancel(reason?: any): Promise<void>;
595
838
  }
596
839
 
597
- /** 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
+ */
598
845
  interface TextDecoder extends TextDecoderCommon {
599
846
  /**
600
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.
@@ -608,6 +855,8 @@ interface TextDecoder extends TextDecoderCommon {
608
855
  * ```
609
856
  *
610
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)
611
860
  */
612
861
  decode(input?: BufferSource, options?: TextDecodeOptions): string;
613
862
  }
@@ -618,14 +867,27 @@ declare var TextDecoder: {
618
867
  };
619
868
 
620
869
  interface TextDecoderCommon {
621
- /** 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
+ */
622
875
  readonly encoding: string;
623
- /** 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
+ */
624
881
  readonly fatal: boolean;
625
- /** 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
+ */
626
887
  readonly ignoreBOM: boolean;
627
888
  }
628
889
 
890
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream) */
629
891
  interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
630
892
  readonly readable: ReadableStream<string>;
631
893
  readonly writable: WritableStream<BufferSource>;
@@ -636,11 +898,23 @@ declare var TextDecoderStream: {
636
898
  new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
637
899
  };
638
900
 
639
- /** 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
+ */
640
906
  interface TextEncoder extends TextEncoderCommon {
641
- /** 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
+ */
642
912
  encode(input?: string): Uint8Array;
643
- /** 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
+ */
644
918
  encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
645
919
  }
646
920
 
@@ -650,10 +924,15 @@ declare var TextEncoder: {
650
924
  };
651
925
 
652
926
  interface TextEncoderCommon {
653
- /** Returns "utf-8". */
927
+ /**
928
+ * Returns "utf-8".
929
+ *
930
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encoding)
931
+ */
654
932
  readonly encoding: string;
655
933
  }
656
934
 
935
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream) */
657
936
  interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
658
937
  readonly readable: ReadableStream<Uint8Array>;
659
938
  readonly writable: WritableStream<string>;
@@ -664,8 +943,11 @@ declare var TextEncoderStream: {
664
943
  new(): TextEncoderStream;
665
944
  };
666
945
 
946
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream) */
667
947
  interface TransformStream<I = any, O = any> {
948
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable) */
668
949
  readonly readable: ReadableStream<O>;
950
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable) */
669
951
  readonly writable: WritableStream<I>;
670
952
  }
671
953
 
@@ -674,10 +956,15 @@ declare var TransformStream: {
674
956
  new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
675
957
  };
676
958
 
959
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) */
677
960
  interface TransformStreamDefaultController<O = any> {
961
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */
678
962
  readonly desiredSize: number | null;
963
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) */
679
964
  enqueue(chunk?: O): void;
965
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error) */
680
966
  error(reason?: any): void;
967
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate) */
681
968
  terminate(): void;
682
969
  }
683
970
 
@@ -686,21 +973,38 @@ declare var TransformStreamDefaultController: {
686
973
  new(): TransformStreamDefaultController;
687
974
  };
688
975
 
689
- /** 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
+ */
690
981
  interface URL {
982
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash) */
691
983
  hash: string;
984
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host) */
692
985
  host: string;
986
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname) */
693
987
  hostname: string;
988
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href) */
694
989
  href: string;
695
990
  toString(): string;
991
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin) */
696
992
  readonly origin: string;
993
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password) */
697
994
  password: string;
995
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname) */
698
996
  pathname: string;
997
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port) */
699
998
  port: string;
999
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol) */
700
1000
  protocol: string;
1001
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search) */
701
1002
  search: string;
1003
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams) */
702
1004
  readonly searchParams: URLSearchParams;
1005
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username) */
703
1006
  username: string;
1007
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON) */
704
1008
  toJSON(): string;
705
1009
  }
706
1010
 
@@ -709,19 +1013,45 @@ declare var URL: {
709
1013
  new(url: string | URL, base?: string | URL): URL;
710
1014
  };
711
1015
 
1016
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) */
712
1017
  interface URLSearchParams {
713
- /** 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
+ */
714
1023
  append(name: string, value: string): void;
715
- /** 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
+ */
716
1029
  delete(name: string): void;
717
- /** 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
+ */
718
1035
  get(name: string): string | null;
719
- /** 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
+ */
720
1041
  getAll(name: string): string[];
721
- /** 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
+ */
722
1047
  has(name: string): boolean;
723
- /** 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
+ */
724
1053
  set(name: string, value: string): void;
1054
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort) */
725
1055
  sort(): void;
726
1056
  /** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */
727
1057
  toString(): string;
@@ -742,11 +1072,18 @@ declare var WorkletGlobalScope: {
742
1072
  new(): WorkletGlobalScope;
743
1073
  };
744
1074
 
745
- /** 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
+ */
746
1080
  interface WritableStream<W = any> {
1081
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked) */
747
1082
  readonly locked: boolean;
1083
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort) */
748
1084
  abort(reason?: any): Promise<void>;
749
1085
  close(): Promise<void>;
1086
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter) */
750
1087
  getWriter(): WritableStreamDefaultWriter<W>;
751
1088
  }
752
1089
 
@@ -755,9 +1092,15 @@ declare var WritableStream: {
755
1092
  new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
756
1093
  };
757
1094
 
758
- /** 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
+ */
759
1100
  interface WritableStreamDefaultController {
1101
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal) */
760
1102
  readonly signal: AbortSignal;
1103
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) */
761
1104
  error(e?: any): void;
762
1105
  }
763
1106
 
@@ -766,14 +1109,25 @@ declare var WritableStreamDefaultController: {
766
1109
  new(): WritableStreamDefaultController;
767
1110
  };
768
1111
 
769
- /** 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
+ */
770
1117
  interface WritableStreamDefaultWriter<W = any> {
1118
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed) */
771
1119
  readonly closed: Promise<undefined>;
1120
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize) */
772
1121
  readonly desiredSize: number | null;
1122
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready) */
773
1123
  readonly ready: Promise<undefined>;
1124
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort) */
774
1125
  abort(reason?: any): Promise<void>;
1126
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close) */
775
1127
  close(): Promise<void>;
1128
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock) */
776
1129
  releaseLock(): void;
1130
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write) */
777
1131
  write(chunk?: W): Promise<void>;
778
1132
  }
779
1133
 
@@ -782,26 +1136,46 @@ declare var WritableStreamDefaultWriter: {
782
1136
  new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
783
1137
  };
784
1138
 
1139
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console) */
785
1140
  interface Console {
1141
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert) */
786
1142
  assert(condition?: boolean, ...data: any[]): void;
1143
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear) */
787
1144
  clear(): void;
1145
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count) */
788
1146
  count(label?: string): void;
1147
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset) */
789
1148
  countReset(label?: string): void;
1149
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug) */
790
1150
  debug(...data: any[]): void;
1151
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir) */
791
1152
  dir(item?: any, options?: any): void;
1153
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml) */
792
1154
  dirxml(...data: any[]): void;
1155
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error) */
793
1156
  error(...data: any[]): void;
1157
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group) */
794
1158
  group(...data: any[]): void;
1159
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed) */
795
1160
  groupCollapsed(...data: any[]): void;
1161
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd) */
796
1162
  groupEnd(): void;
1163
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info) */
797
1164
  info(...data: any[]): void;
1165
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log) */
798
1166
  log(...data: any[]): void;
1167
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table) */
799
1168
  table(tabularData?: any, properties?: string[]): void;
1169
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time) */
800
1170
  time(label?: string): void;
1171
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd) */
801
1172
  timeEnd(label?: string): void;
1173
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog) */
802
1174
  timeLog(label?: string, ...data: any[]): void;
803
1175
  timeStamp(label?: string): void;
1176
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace) */
804
1177
  trace(...data: any[]): void;
1178
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn) */
805
1179
  warn(...data: any[]): void;
806
1180
  }
807
1181
 
@@ -817,8 +1191,11 @@ declare namespace WebAssembly {
817
1191
  (message?: string): CompileError;
818
1192
  };
819
1193
 
1194
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global) */
820
1195
  interface Global {
1196
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/value) */
821
1197
  value: any;
1198
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/valueOf) */
822
1199
  valueOf(): any;
823
1200
  }
824
1201
 
@@ -827,7 +1204,9 @@ declare namespace WebAssembly {
827
1204
  new(descriptor: GlobalDescriptor, v?: any): Global;
828
1205
  };
829
1206
 
1207
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance) */
830
1208
  interface Instance {
1209
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance/exports) */
831
1210
  readonly exports: Exports;
832
1211
  }
833
1212
 
@@ -845,8 +1224,11 @@ declare namespace WebAssembly {
845
1224
  (message?: string): LinkError;
846
1225
  };
847
1226
 
1227
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory) */
848
1228
  interface Memory {
1229
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory/buffer) */
849
1230
  readonly buffer: ArrayBuffer;
1231
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory/grow) */
850
1232
  grow(delta: number): number;
851
1233
  }
852
1234
 
@@ -855,14 +1237,18 @@ declare namespace WebAssembly {
855
1237
  new(descriptor: MemoryDescriptor): Memory;
856
1238
  };
857
1239
 
1240
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module) */
858
1241
  interface Module {
859
1242
  }
860
1243
 
861
1244
  var Module: {
862
1245
  prototype: Module;
863
1246
  new(bytes: BufferSource): Module;
1247
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module/customSections) */
864
1248
  customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
1249
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module/exports) */
865
1250
  exports(moduleObject: Module): ModuleExportDescriptor[];
1251
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module/imports) */
866
1252
  imports(moduleObject: Module): ModuleImportDescriptor[];
867
1253
  };
868
1254
 
@@ -875,10 +1261,15 @@ declare namespace WebAssembly {
875
1261
  (message?: string): RuntimeError;
876
1262
  };
877
1263
 
1264
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table) */
878
1265
  interface Table {
1266
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/length) */
879
1267
  readonly length: number;
1268
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/get) */
880
1269
  get(index: number): any;
1270
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/grow) */
881
1271
  grow(delta: number, value?: any): number;
1272
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/set) */
882
1273
  set(index: number, value?: any): void;
883
1274
  }
884
1275
 
@@ -928,9 +1319,12 @@ declare namespace WebAssembly {
928
1319
  type ImportValue = ExportValue | number;
929
1320
  type Imports = Record<string, ModuleImports>;
930
1321
  type ModuleImports = Record<string, ImportValue>;
1322
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compile) */
931
1323
  function compile(bytes: BufferSource): Promise<Module>;
1324
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/instantiate) */
932
1325
  function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
933
1326
  function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
1327
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/validate) */
934
1328
  function validate(bytes: BufferSource): boolean;
935
1329
  }
936
1330
 
@@ -982,9 +1376,13 @@ interface UnderlyingSourceStartCallback<R> {
982
1376
  (controller: ReadableStreamController<R>): any;
983
1377
  }
984
1378
 
1379
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope/currentFrame) */
985
1380
  declare var currentFrame: number;
1381
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope/currentTime) */
986
1382
  declare var currentTime: number;
1383
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope/sampleRate) */
987
1384
  declare var sampleRate: number;
1385
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope/registerProcessor) */
988
1386
  declare function registerProcessor(name: string, processorCtor: AudioWorkletProcessorConstructor): void;
989
1387
  type BufferSource = ArrayBufferView | ArrayBuffer;
990
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.38",
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": [],