@types/audioworklet 0.0.38 → 0.0.40

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.40 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Faudioworklet%400.0.40.
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,15 @@ 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> {
270
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark) */
235
271
  readonly highWaterMark: number;
272
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */
236
273
  readonly size: QueuingStrategySize<ArrayBufferView>;
237
274
  }
238
275
 
@@ -241,6 +278,7 @@ declare var ByteLengthQueuingStrategy: {
241
278
  new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
242
279
  };
243
280
 
281
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */
244
282
  interface CompressionStream extends GenericTransformStream {
245
283
  }
246
284
 
@@ -249,9 +287,15 @@ declare var CompressionStream: {
249
287
  new(format: string): CompressionStream;
250
288
  };
251
289
 
252
- /** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */
290
+ /**
291
+ * This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams.
292
+ *
293
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy)
294
+ */
253
295
  interface CountQueuingStrategy extends QueuingStrategy {
296
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark) */
254
297
  readonly highWaterMark: number;
298
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */
255
299
  readonly size: QueuingStrategySize;
256
300
  }
257
301
 
@@ -260,10 +304,19 @@ declare var CountQueuingStrategy: {
260
304
  new(init: QueuingStrategyInit): CountQueuingStrategy;
261
305
  };
262
306
 
307
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */
263
308
  interface CustomEvent<T = any> extends Event {
264
- /** Returns any custom data event was created with. Typically used for synthetic events. */
309
+ /**
310
+ * Returns any custom data event was created with. Typically used for synthetic events.
311
+ *
312
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)
313
+ */
265
314
  readonly detail: T;
266
- /** @deprecated */
315
+ /**
316
+ * @deprecated
317
+ *
318
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent)
319
+ */
267
320
  initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
268
321
  }
269
322
 
@@ -272,11 +325,21 @@ declare var CustomEvent: {
272
325
  new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
273
326
  };
274
327
 
275
- /** 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
+ * An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API.
330
+ *
331
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException)
332
+ */
276
333
  interface DOMException extends Error {
277
- /** @deprecated */
334
+ /**
335
+ * @deprecated
336
+ *
337
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
338
+ */
278
339
  readonly code: number;
340
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */
279
341
  readonly message: string;
342
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */
280
343
  readonly name: string;
281
344
  readonly INDEX_SIZE_ERR: 1;
282
345
  readonly DOMSTRING_SIZE_ERR: 2;
@@ -335,6 +398,7 @@ declare var DOMException: {
335
398
  readonly DATA_CLONE_ERR: 25;
336
399
  };
337
400
 
401
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */
338
402
  interface DecompressionStream extends GenericTransformStream {
339
403
  }
340
404
 
@@ -343,12 +407,21 @@ declare var DecompressionStream: {
343
407
  new(format: string): DecompressionStream;
344
408
  };
345
409
 
346
- /** Events providing information related to errors in scripts or in files. */
410
+ /**
411
+ * Events providing information related to errors in scripts or in files.
412
+ *
413
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent)
414
+ */
347
415
  interface ErrorEvent extends Event {
416
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */
348
417
  readonly colno: number;
418
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */
349
419
  readonly error: any;
420
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */
350
421
  readonly filename: string;
422
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */
351
423
  readonly lineno: number;
424
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */
352
425
  readonly message: string;
353
426
  }
354
427
 
@@ -357,43 +430,119 @@ declare var ErrorEvent: {
357
430
  new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
358
431
  };
359
432
 
360
- /** An event which takes place in the DOM. */
433
+ /**
434
+ * An event which takes place in the DOM.
435
+ *
436
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event)
437
+ */
361
438
  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. */
439
+ /**
440
+ * 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.
441
+ *
442
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles)
443
+ */
363
444
  readonly bubbles: boolean;
364
- /** @deprecated */
445
+ /**
446
+ * @deprecated
447
+ *
448
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble)
449
+ */
365
450
  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. */
451
+ /**
452
+ * 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.
453
+ *
454
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable)
455
+ */
367
456
  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. */
457
+ /**
458
+ * 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.
459
+ *
460
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed)
461
+ */
369
462
  readonly composed: boolean;
370
- /** Returns the object whose event listener's callback is currently being invoked. */
463
+ /**
464
+ * Returns the object whose event listener's callback is currently being invoked.
465
+ *
466
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget)
467
+ */
371
468
  readonly currentTarget: EventTarget | null;
372
- /** Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. */
469
+ /**
470
+ * Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
471
+ *
472
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented)
473
+ */
373
474
  readonly defaultPrevented: boolean;
374
- /** Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. */
475
+ /**
476
+ * Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.
477
+ *
478
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase)
479
+ */
375
480
  readonly eventPhase: number;
376
- /** Returns true if event was dispatched by the user agent, and false otherwise. */
481
+ /**
482
+ * Returns true if event was dispatched by the user agent, and false otherwise.
483
+ *
484
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
485
+ */
377
486
  readonly isTrusted: boolean;
378
- /** @deprecated */
487
+ /**
488
+ * @deprecated
489
+ *
490
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)
491
+ */
379
492
  returnValue: boolean;
380
- /** @deprecated */
493
+ /**
494
+ * @deprecated
495
+ *
496
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement)
497
+ */
381
498
  readonly srcElement: EventTarget | null;
382
- /** Returns the object to which event is dispatched (its target). */
499
+ /**
500
+ * Returns the object to which event is dispatched (its target).
501
+ *
502
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)
503
+ */
383
504
  readonly target: EventTarget | null;
384
- /** Returns the event's timestamp as the number of milliseconds measured relative to the time origin. */
505
+ /**
506
+ * Returns the event's timestamp as the number of milliseconds measured relative to the time origin.
507
+ *
508
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp)
509
+ */
385
510
  readonly timeStamp: DOMHighResTimeStamp;
386
- /** Returns the type of event, e.g. "click", "hashchange", or "submit". */
511
+ /**
512
+ * Returns the type of event, e.g. "click", "hashchange", or "submit".
513
+ *
514
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type)
515
+ */
387
516
  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. */
517
+ /**
518
+ * 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.
519
+ *
520
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath)
521
+ */
389
522
  composedPath(): EventTarget[];
390
- /** @deprecated */
523
+ /**
524
+ * @deprecated
525
+ *
526
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent)
527
+ */
391
528
  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. */
529
+ /**
530
+ * 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.
531
+ *
532
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault)
533
+ */
393
534
  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. */
535
+ /**
536
+ * 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.
537
+ *
538
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation)
539
+ */
395
540
  stopImmediatePropagation(): void;
396
- /** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */
541
+ /**
542
+ * When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
543
+ *
544
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation)
545
+ */
397
546
  stopPropagation(): void;
398
547
  readonly NONE: 0;
399
548
  readonly CAPTURING_PHASE: 1;
@@ -418,7 +567,11 @@ interface EventListenerObject {
418
567
  handleEvent(object: Event): void;
419
568
  }
420
569
 
421
- /** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */
570
+ /**
571
+ * EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them.
572
+ *
573
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget)
574
+ */
422
575
  interface EventTarget {
423
576
  /**
424
577
  * 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 +587,21 @@ interface EventTarget {
434
587
  * If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
435
588
  *
436
589
  * The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
590
+ *
591
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
437
592
  */
438
593
  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. */
594
+ /**
595
+ * 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.
596
+ *
597
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
598
+ */
440
599
  dispatchEvent(event: Event): boolean;
441
- /** Removes the event listener in target's event listener list with the same type, callback, and options. */
600
+ /**
601
+ * Removes the event listener in target's event listener list with the same type, callback, and options.
602
+ *
603
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
604
+ */
442
605
  removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
443
606
  }
444
607
 
@@ -448,23 +611,53 @@ declare var EventTarget: {
448
611
  };
449
612
 
450
613
  interface GenericTransformStream {
614
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
451
615
  readonly readable: ReadableStream;
616
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/writable) */
452
617
  readonly writable: WritableStream;
453
618
  }
454
619
 
455
- /** A message received by a target object. */
620
+ /**
621
+ * A message received by a target object.
622
+ *
623
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent)
624
+ */
456
625
  interface MessageEvent<T = any> extends Event {
457
- /** Returns the data of the message. */
626
+ /**
627
+ * Returns the data of the message.
628
+ *
629
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data)
630
+ */
458
631
  readonly data: T;
459
- /** Returns the last event ID string, for server-sent events. */
632
+ /**
633
+ * Returns the last event ID string, for server-sent events.
634
+ *
635
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId)
636
+ */
460
637
  readonly lastEventId: string;
461
- /** Returns the origin of the message, for server-sent events and cross-document messaging. */
638
+ /**
639
+ * Returns the origin of the message, for server-sent events and cross-document messaging.
640
+ *
641
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin)
642
+ */
462
643
  readonly origin: string;
463
- /** Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. */
644
+ /**
645
+ * Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.
646
+ *
647
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports)
648
+ */
464
649
  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. */
650
+ /**
651
+ * Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects.
652
+ *
653
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source)
654
+ */
466
655
  readonly source: MessageEventSource | null;
467
- /** @deprecated */
656
+ /**
657
+ * @deprecated
658
+ *
659
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)
660
+ */
468
661
  initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
469
662
  }
470
663
 
@@ -478,20 +671,36 @@ interface MessagePortEventMap {
478
671
  "messageerror": MessageEvent;
479
672
  }
480
673
 
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. */
674
+ /**
675
+ * 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.
676
+ *
677
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort)
678
+ */
482
679
  interface MessagePort extends EventTarget {
680
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/message_event) */
483
681
  onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
682
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/messageerror_event) */
484
683
  onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
485
- /** Disconnects the port, so that it is no longer active. */
684
+ /**
685
+ * Disconnects the port, so that it is no longer active.
686
+ *
687
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close)
688
+ */
486
689
  close(): void;
487
690
  /**
488
691
  * 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
692
  *
490
693
  * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
694
+ *
695
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage)
491
696
  */
492
697
  postMessage(message: any, transfer: Transferable[]): void;
493
698
  postMessage(message: any, options?: StructuredSerializeOptions): void;
494
- /** Begins dispatching messages received on the port. */
699
+ /**
700
+ * Begins dispatching messages received on the port.
701
+ *
702
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/start)
703
+ */
495
704
  start(): void;
496
705
  addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
497
706
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -504,8 +713,11 @@ declare var MessagePort: {
504
713
  new(): MessagePort;
505
714
  };
506
715
 
716
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent) */
507
717
  interface PromiseRejectionEvent extends Event {
718
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise) */
508
719
  readonly promise: Promise<any>;
720
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason) */
509
721
  readonly reason: any;
510
722
  }
511
723
 
@@ -514,11 +726,17 @@ declare var PromiseRejectionEvent: {
514
726
  new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
515
727
  };
516
728
 
729
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController) */
517
730
  interface ReadableByteStreamController {
731
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest) */
518
732
  readonly byobRequest: ReadableStreamBYOBRequest | null;
733
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize) */
519
734
  readonly desiredSize: number | null;
735
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close) */
520
736
  close(): void;
737
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue) */
521
738
  enqueue(chunk: ArrayBufferView): void;
739
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error) */
522
740
  error(e?: any): void;
523
741
  }
524
742
 
@@ -527,15 +745,25 @@ declare var ReadableByteStreamController: {
527
745
  new(): ReadableByteStreamController;
528
746
  };
529
747
 
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. */
748
+ /**
749
+ * 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.
750
+ *
751
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)
752
+ */
531
753
  interface ReadableStream<R = any> {
754
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked) */
532
755
  readonly locked: boolean;
756
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel) */
533
757
  cancel(reason?: any): Promise<void>;
758
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) */
534
759
  getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
535
760
  getReader(): ReadableStreamDefaultReader<R>;
536
761
  getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
762
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough) */
537
763
  pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
764
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo) */
538
765
  pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
766
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee) */
539
767
  tee(): [ReadableStream<R>, ReadableStream<R>];
540
768
  }
541
769
 
@@ -546,8 +774,11 @@ declare var ReadableStream: {
546
774
  new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
547
775
  };
548
776
 
777
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */
549
778
  interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
779
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */
550
780
  read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
781
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */
551
782
  releaseLock(): void;
552
783
  }
553
784
 
@@ -556,9 +787,13 @@ declare var ReadableStreamBYOBReader: {
556
787
  new(stream: ReadableStream): ReadableStreamBYOBReader;
557
788
  };
558
789
 
790
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */
559
791
  interface ReadableStreamBYOBRequest {
792
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) */
560
793
  readonly view: ArrayBufferView | null;
794
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) */
561
795
  respond(bytesWritten: number): void;
796
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) */
562
797
  respondWithNewView(view: ArrayBufferView): void;
563
798
  }
564
799
 
@@ -567,10 +802,15 @@ declare var ReadableStreamBYOBRequest: {
567
802
  new(): ReadableStreamBYOBRequest;
568
803
  };
569
804
 
805
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController) */
570
806
  interface ReadableStreamDefaultController<R = any> {
807
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize) */
571
808
  readonly desiredSize: number | null;
809
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close) */
572
810
  close(): void;
811
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue) */
573
812
  enqueue(chunk?: R): void;
813
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error) */
574
814
  error(e?: any): void;
575
815
  }
576
816
 
@@ -579,8 +819,11 @@ declare var ReadableStreamDefaultController: {
579
819
  new(): ReadableStreamDefaultController;
580
820
  };
581
821
 
822
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader) */
582
823
  interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
824
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read) */
583
825
  read(): Promise<ReadableStreamReadResult<R>>;
826
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock) */
584
827
  releaseLock(): void;
585
828
  }
586
829
 
@@ -590,11 +833,17 @@ declare var ReadableStreamDefaultReader: {
590
833
  };
591
834
 
592
835
  interface ReadableStreamGenericReader {
836
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/closed) */
593
837
  readonly closed: Promise<undefined>;
838
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/cancel) */
594
839
  cancel(reason?: any): Promise<void>;
595
840
  }
596
841
 
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. */
842
+ /**
843
+ * 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.
844
+ *
845
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)
846
+ */
598
847
  interface TextDecoder extends TextDecoderCommon {
599
848
  /**
600
849
  * 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 +857,8 @@ interface TextDecoder extends TextDecoderCommon {
608
857
  * ```
609
858
  *
610
859
  * If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
860
+ *
861
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode)
611
862
  */
612
863
  decode(input?: BufferSource, options?: TextDecodeOptions): string;
613
864
  }
@@ -618,14 +869,27 @@ declare var TextDecoder: {
618
869
  };
619
870
 
620
871
  interface TextDecoderCommon {
621
- /** Returns encoding's name, lowercased. */
872
+ /**
873
+ * Returns encoding's name, lowercased.
874
+ *
875
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/encoding)
876
+ */
622
877
  readonly encoding: string;
623
- /** Returns true if error mode is "fatal", otherwise false. */
878
+ /**
879
+ * Returns true if error mode is "fatal", otherwise false.
880
+ *
881
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/fatal)
882
+ */
624
883
  readonly fatal: boolean;
625
- /** Returns the value of ignore BOM. */
884
+ /**
885
+ * Returns the value of ignore BOM.
886
+ *
887
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/ignoreBOM)
888
+ */
626
889
  readonly ignoreBOM: boolean;
627
890
  }
628
891
 
892
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream) */
629
893
  interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
630
894
  readonly readable: ReadableStream<string>;
631
895
  readonly writable: WritableStream<BufferSource>;
@@ -636,11 +900,23 @@ declare var TextDecoderStream: {
636
900
  new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
637
901
  };
638
902
 
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. */
903
+ /**
904
+ * 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.
905
+ *
906
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
907
+ */
640
908
  interface TextEncoder extends TextEncoderCommon {
641
- /** Returns the result of running UTF-8's encoder. */
909
+ /**
910
+ * Returns the result of running UTF-8's encoder.
911
+ *
912
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
913
+ */
642
914
  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. */
915
+ /**
916
+ * 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.
917
+ *
918
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)
919
+ */
644
920
  encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
645
921
  }
646
922
 
@@ -650,10 +926,15 @@ declare var TextEncoder: {
650
926
  };
651
927
 
652
928
  interface TextEncoderCommon {
653
- /** Returns "utf-8". */
929
+ /**
930
+ * Returns "utf-8".
931
+ *
932
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encoding)
933
+ */
654
934
  readonly encoding: string;
655
935
  }
656
936
 
937
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream) */
657
938
  interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
658
939
  readonly readable: ReadableStream<Uint8Array>;
659
940
  readonly writable: WritableStream<string>;
@@ -664,8 +945,11 @@ declare var TextEncoderStream: {
664
945
  new(): TextEncoderStream;
665
946
  };
666
947
 
948
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream) */
667
949
  interface TransformStream<I = any, O = any> {
950
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable) */
668
951
  readonly readable: ReadableStream<O>;
952
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable) */
669
953
  readonly writable: WritableStream<I>;
670
954
  }
671
955
 
@@ -674,10 +958,15 @@ declare var TransformStream: {
674
958
  new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
675
959
  };
676
960
 
961
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) */
677
962
  interface TransformStreamDefaultController<O = any> {
963
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */
678
964
  readonly desiredSize: number | null;
965
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) */
679
966
  enqueue(chunk?: O): void;
967
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error) */
680
968
  error(reason?: any): void;
969
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate) */
681
970
  terminate(): void;
682
971
  }
683
972
 
@@ -686,21 +975,38 @@ declare var TransformStreamDefaultController: {
686
975
  new(): TransformStreamDefaultController;
687
976
  };
688
977
 
689
- /** The URL interface represents an object providing static methods used for creating object URLs. */
978
+ /**
979
+ * The URL interface represents an object providing static methods used for creating object URLs.
980
+ *
981
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL)
982
+ */
690
983
  interface URL {
984
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash) */
691
985
  hash: string;
986
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host) */
692
987
  host: string;
988
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname) */
693
989
  hostname: string;
990
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href) */
694
991
  href: string;
695
992
  toString(): string;
993
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin) */
696
994
  readonly origin: string;
995
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password) */
697
996
  password: string;
997
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname) */
698
998
  pathname: string;
999
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port) */
699
1000
  port: string;
1001
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol) */
700
1002
  protocol: string;
1003
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search) */
701
1004
  search: string;
1005
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams) */
702
1006
  readonly searchParams: URLSearchParams;
1007
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username) */
703
1008
  username: string;
1009
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON) */
704
1010
  toJSON(): string;
705
1011
  }
706
1012
 
@@ -709,19 +1015,45 @@ declare var URL: {
709
1015
  new(url: string | URL, base?: string | URL): URL;
710
1016
  };
711
1017
 
1018
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) */
712
1019
  interface URLSearchParams {
713
- /** Appends a specified key/value pair as a new search parameter. */
1020
+ /**
1021
+ * Appends a specified key/value pair as a new search parameter.
1022
+ *
1023
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/append)
1024
+ */
714
1025
  append(name: string, value: string): void;
715
- /** Deletes the given search parameter, and its associated value, from the list of all search parameters. */
1026
+ /**
1027
+ * Deletes the given search parameter, and its associated value, from the list of all search parameters.
1028
+ *
1029
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete)
1030
+ */
716
1031
  delete(name: string): void;
717
- /** Returns the first value associated to the given search parameter. */
1032
+ /**
1033
+ * Returns the first value associated to the given search parameter.
1034
+ *
1035
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/get)
1036
+ */
718
1037
  get(name: string): string | null;
719
- /** Returns all the values association with a given search parameter. */
1038
+ /**
1039
+ * Returns all the values association with a given search parameter.
1040
+ *
1041
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll)
1042
+ */
720
1043
  getAll(name: string): string[];
721
- /** Returns a Boolean indicating if such a search parameter exists. */
1044
+ /**
1045
+ * Returns a Boolean indicating if such a search parameter exists.
1046
+ *
1047
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)
1048
+ */
722
1049
  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. */
1050
+ /**
1051
+ * Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.
1052
+ *
1053
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set)
1054
+ */
724
1055
  set(name: string, value: string): void;
1056
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort) */
725
1057
  sort(): void;
726
1058
  /** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */
727
1059
  toString(): string;
@@ -742,11 +1074,19 @@ declare var WorkletGlobalScope: {
742
1074
  new(): WorkletGlobalScope;
743
1075
  };
744
1076
 
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. */
1077
+ /**
1078
+ * 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.
1079
+ *
1080
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream)
1081
+ */
746
1082
  interface WritableStream<W = any> {
1083
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked) */
747
1084
  readonly locked: boolean;
1085
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort) */
748
1086
  abort(reason?: any): Promise<void>;
1087
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close) */
749
1088
  close(): Promise<void>;
1089
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter) */
750
1090
  getWriter(): WritableStreamDefaultWriter<W>;
751
1091
  }
752
1092
 
@@ -755,9 +1095,15 @@ declare var WritableStream: {
755
1095
  new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
756
1096
  };
757
1097
 
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. */
1098
+ /**
1099
+ * 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.
1100
+ *
1101
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController)
1102
+ */
759
1103
  interface WritableStreamDefaultController {
1104
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal) */
760
1105
  readonly signal: AbortSignal;
1106
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) */
761
1107
  error(e?: any): void;
762
1108
  }
763
1109
 
@@ -766,14 +1112,25 @@ declare var WritableStreamDefaultController: {
766
1112
  new(): WritableStreamDefaultController;
767
1113
  };
768
1114
 
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. */
1115
+ /**
1116
+ * 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.
1117
+ *
1118
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter)
1119
+ */
770
1120
  interface WritableStreamDefaultWriter<W = any> {
1121
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed) */
771
1122
  readonly closed: Promise<undefined>;
1123
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize) */
772
1124
  readonly desiredSize: number | null;
1125
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready) */
773
1126
  readonly ready: Promise<undefined>;
1127
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort) */
774
1128
  abort(reason?: any): Promise<void>;
1129
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close) */
775
1130
  close(): Promise<void>;
1131
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock) */
776
1132
  releaseLock(): void;
1133
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write) */
777
1134
  write(chunk?: W): Promise<void>;
778
1135
  }
779
1136
 
@@ -782,26 +1139,46 @@ declare var WritableStreamDefaultWriter: {
782
1139
  new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
783
1140
  };
784
1141
 
1142
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console) */
785
1143
  interface Console {
1144
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert) */
786
1145
  assert(condition?: boolean, ...data: any[]): void;
1146
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear) */
787
1147
  clear(): void;
1148
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count) */
788
1149
  count(label?: string): void;
1150
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset) */
789
1151
  countReset(label?: string): void;
1152
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug) */
790
1153
  debug(...data: any[]): void;
1154
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir) */
791
1155
  dir(item?: any, options?: any): void;
1156
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml) */
792
1157
  dirxml(...data: any[]): void;
1158
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error) */
793
1159
  error(...data: any[]): void;
1160
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group) */
794
1161
  group(...data: any[]): void;
1162
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed) */
795
1163
  groupCollapsed(...data: any[]): void;
1164
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd) */
796
1165
  groupEnd(): void;
1166
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info) */
797
1167
  info(...data: any[]): void;
1168
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log) */
798
1169
  log(...data: any[]): void;
1170
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table) */
799
1171
  table(tabularData?: any, properties?: string[]): void;
1172
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time) */
800
1173
  time(label?: string): void;
1174
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd) */
801
1175
  timeEnd(label?: string): void;
1176
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog) */
802
1177
  timeLog(label?: string, ...data: any[]): void;
803
1178
  timeStamp(label?: string): void;
1179
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace) */
804
1180
  trace(...data: any[]): void;
1181
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn) */
805
1182
  warn(...data: any[]): void;
806
1183
  }
807
1184
 
@@ -817,8 +1194,11 @@ declare namespace WebAssembly {
817
1194
  (message?: string): CompileError;
818
1195
  };
819
1196
 
1197
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global) */
820
1198
  interface Global {
1199
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/value) */
821
1200
  value: any;
1201
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/valueOf) */
822
1202
  valueOf(): any;
823
1203
  }
824
1204
 
@@ -827,7 +1207,9 @@ declare namespace WebAssembly {
827
1207
  new(descriptor: GlobalDescriptor, v?: any): Global;
828
1208
  };
829
1209
 
1210
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance) */
830
1211
  interface Instance {
1212
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance/exports) */
831
1213
  readonly exports: Exports;
832
1214
  }
833
1215
 
@@ -845,8 +1227,11 @@ declare namespace WebAssembly {
845
1227
  (message?: string): LinkError;
846
1228
  };
847
1229
 
1230
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory) */
848
1231
  interface Memory {
1232
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory/buffer) */
849
1233
  readonly buffer: ArrayBuffer;
1234
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory/grow) */
850
1235
  grow(delta: number): number;
851
1236
  }
852
1237
 
@@ -855,14 +1240,18 @@ declare namespace WebAssembly {
855
1240
  new(descriptor: MemoryDescriptor): Memory;
856
1241
  };
857
1242
 
1243
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module) */
858
1244
  interface Module {
859
1245
  }
860
1246
 
861
1247
  var Module: {
862
1248
  prototype: Module;
863
1249
  new(bytes: BufferSource): Module;
1250
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module/customSections) */
864
1251
  customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
1252
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module/exports) */
865
1253
  exports(moduleObject: Module): ModuleExportDescriptor[];
1254
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module/imports) */
866
1255
  imports(moduleObject: Module): ModuleImportDescriptor[];
867
1256
  };
868
1257
 
@@ -875,10 +1264,15 @@ declare namespace WebAssembly {
875
1264
  (message?: string): RuntimeError;
876
1265
  };
877
1266
 
1267
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table) */
878
1268
  interface Table {
1269
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/length) */
879
1270
  readonly length: number;
1271
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/get) */
880
1272
  get(index: number): any;
1273
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/grow) */
881
1274
  grow(delta: number, value?: any): number;
1275
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table/set) */
882
1276
  set(index: number, value?: any): void;
883
1277
  }
884
1278
 
@@ -928,9 +1322,12 @@ declare namespace WebAssembly {
928
1322
  type ImportValue = ExportValue | number;
929
1323
  type Imports = Record<string, ModuleImports>;
930
1324
  type ModuleImports = Record<string, ImportValue>;
1325
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compile) */
931
1326
  function compile(bytes: BufferSource): Promise<Module>;
1327
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/instantiate) */
932
1328
  function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
933
1329
  function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
1330
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/validate) */
934
1331
  function validate(bytes: BufferSource): boolean;
935
1332
  }
936
1333
 
@@ -982,9 +1379,13 @@ interface UnderlyingSourceStartCallback<R> {
982
1379
  (controller: ReadableStreamController<R>): any;
983
1380
  }
984
1381
 
1382
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope/currentFrame) */
985
1383
  declare var currentFrame: number;
1384
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope/currentTime) */
986
1385
  declare var currentTime: number;
1386
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope/sampleRate) */
987
1387
  declare var sampleRate: number;
1388
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope/registerProcessor) */
988
1389
  declare function registerProcessor(name: string, processorCtor: AudioWorkletProcessorConstructor): void;
989
1390
  type BufferSource = ArrayBufferView | ArrayBuffer;
990
1391
  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.40",
4
4
  "description": "Types for the global scope of Audio Worklets",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],