@cloudflare/workers-types 4.20251014.0 → 4.20251106.1

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.
@@ -16,17 +16,26 @@ and limitations under the License.
16
16
  // noinspection JSUnusedGlobalSymbols
17
17
  declare var onmessage: never;
18
18
  /**
19
- * An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API.
19
+ * The **`DOMException`** interface represents an abnormal event (called an **exception**) that occurs as a result of calling a method or accessing a property of a web API.
20
20
  *
21
21
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException)
22
22
  */
23
23
  declare class DOMException extends Error {
24
24
  constructor(message?: string, name?: string);
25
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */
25
+ /**
26
+ * The **`message`** read-only property of the a message or description associated with the given error name.
27
+ *
28
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message)
29
+ */
26
30
  readonly message: string;
27
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */
31
+ /**
32
+ * The **`name`** read-only property of the one of the strings associated with an error name.
33
+ *
34
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name)
35
+ */
28
36
  readonly name: string;
29
37
  /**
38
+ * The **`code`** read-only property of the DOMException interface returns one of the legacy error code constants, or `0` if none match.
30
39
  * @deprecated
31
40
  *
32
41
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
@@ -70,45 +79,121 @@ type WorkerGlobalScopeEventMap = {
70
79
  declare abstract class WorkerGlobalScope extends EventTarget<WorkerGlobalScopeEventMap> {
71
80
  EventTarget: typeof EventTarget;
72
81
  }
73
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console) */
82
+ /* The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). *
83
+ * The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox).
84
+ *
85
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console)
86
+ */
74
87
  interface Console {
75
88
  "assert"(condition?: boolean, ...data: any[]): void;
76
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static) */
89
+ /**
90
+ * The **`console.clear()`** static method clears the console if possible.
91
+ *
92
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static)
93
+ */
77
94
  clear(): void;
78
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) */
95
+ /**
96
+ * The **`console.count()`** static method logs the number of times that this particular call to `count()` has been called.
97
+ *
98
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static)
99
+ */
79
100
  count(label?: string): void;
80
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static) */
101
+ /**
102
+ * The **`console.countReset()`** static method resets counter used with console/count_static.
103
+ *
104
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static)
105
+ */
81
106
  countReset(label?: string): void;
82
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) */
107
+ /**
108
+ * The **`console.debug()`** static method outputs a message to the console at the 'debug' log level.
109
+ *
110
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static)
111
+ */
83
112
  debug(...data: any[]): void;
84
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */
113
+ /**
114
+ * The **`console.dir()`** static method displays a list of the properties of the specified JavaScript object.
115
+ *
116
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static)
117
+ */
85
118
  dir(item?: any, options?: any): void;
86
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static) */
119
+ /**
120
+ * The **`console.dirxml()`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element.
121
+ *
122
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static)
123
+ */
87
124
  dirxml(...data: any[]): void;
88
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static) */
125
+ /**
126
+ * The **`console.error()`** static method outputs a message to the console at the 'error' log level.
127
+ *
128
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static)
129
+ */
89
130
  error(...data: any[]): void;
90
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) */
131
+ /**
132
+ * The **`console.group()`** static method creates a new inline group in the Web console log, causing any subsequent console messages to be indented by an additional level, until console/groupEnd_static is called.
133
+ *
134
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static)
135
+ */
91
136
  group(...data: any[]): void;
92
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static) */
137
+ /**
138
+ * The **`console.groupCollapsed()`** static method creates a new inline group in the console.
139
+ *
140
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static)
141
+ */
93
142
  groupCollapsed(...data: any[]): void;
94
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static) */
143
+ /**
144
+ * The **`console.groupEnd()`** static method exits the current inline group in the console.
145
+ *
146
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static)
147
+ */
95
148
  groupEnd(): void;
96
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) */
149
+ /**
150
+ * The **`console.info()`** static method outputs a message to the console at the 'info' log level.
151
+ *
152
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static)
153
+ */
97
154
  info(...data: any[]): void;
98
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static) */
155
+ /**
156
+ * The **`console.log()`** static method outputs a message to the console.
157
+ *
158
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static)
159
+ */
99
160
  log(...data: any[]): void;
100
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static) */
161
+ /**
162
+ * The **`console.table()`** static method displays tabular data as a table.
163
+ *
164
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static)
165
+ */
101
166
  table(tabularData?: any, properties?: string[]): void;
102
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) */
167
+ /**
168
+ * The **`console.time()`** static method starts a timer you can use to track how long an operation takes.
169
+ *
170
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static)
171
+ */
103
172
  time(label?: string): void;
104
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static) */
173
+ /**
174
+ * The **`console.timeEnd()`** static method stops a timer that was previously started by calling console/time_static.
175
+ *
176
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static)
177
+ */
105
178
  timeEnd(label?: string): void;
106
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static) */
179
+ /**
180
+ * The **`console.timeLog()`** static method logs the current value of a timer that was previously started by calling console/time_static.
181
+ *
182
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static)
183
+ */
107
184
  timeLog(label?: string, ...data: any[]): void;
108
185
  timeStamp(label?: string): void;
109
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) */
186
+ /**
187
+ * The **`console.trace()`** static method outputs a stack trace to the console.
188
+ *
189
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static)
190
+ */
110
191
  trace(...data: any[]): void;
111
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static) */
192
+ /**
193
+ * The **`console.warn()`** static method outputs a warning message to the console at the 'warning' log level.
194
+ *
195
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static)
196
+ */
112
197
  warn(...data: any[]): void;
113
198
  }
114
199
  declare const console: Console;
@@ -200,7 +285,7 @@ declare namespace WebAssembly {
200
285
  function validate(bytes: BufferSource): boolean;
201
286
  }
202
287
  /**
203
- * This ServiceWorker API interface represents the global execution context of a service worker.
288
+ * The **`ServiceWorkerGlobalScope`** interface of the Service Worker API represents the global execution context of a service worker.
204
289
  * Available only in secure contexts.
205
290
  *
206
291
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope)
@@ -301,7 +386,7 @@ declare function removeEventListener<
301
386
  options?: EventTargetEventListenerOptions | boolean,
302
387
  ): void;
303
388
  /**
304
- * 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.
389
+ * The **`dispatchEvent()`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
305
390
  *
306
391
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
307
392
  */
@@ -436,13 +521,6 @@ interface ExportedHandler<
436
521
  interface StructuredSerializeOptions {
437
522
  transfer?: any[];
438
523
  }
439
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent) */
440
- declare abstract class PromiseRejectionEvent extends Event {
441
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise) */
442
- readonly promise: Promise<any>;
443
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason) */
444
- readonly reason: any;
445
- }
446
524
  interface AlarmInvocationInfo {
447
525
  readonly isRetry: boolean;
448
526
  readonly retryCount: number;
@@ -648,116 +726,120 @@ interface AnalyticsEngineDataPoint {
648
726
  blobs?: ((ArrayBuffer | string) | null)[];
649
727
  }
650
728
  /**
651
- * An event which takes place in the DOM.
729
+ * The **`Event`** interface represents an event which takes place on an `EventTarget`.
652
730
  *
653
731
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event)
654
732
  */
655
733
  declare class Event {
656
734
  constructor(type: string, init?: EventInit);
657
735
  /**
658
- * Returns the type of event, e.g. "click", "hashchange", or "submit".
736
+ * The **`type`** read-only property of the Event interface returns a string containing the event's type.
659
737
  *
660
738
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type)
661
739
  */
662
740
  get type(): string;
663
741
  /**
664
- * Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.
742
+ * The **`eventPhase`** read-only property of the being evaluated.
665
743
  *
666
744
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase)
667
745
  */
668
746
  get eventPhase(): number;
669
747
  /**
670
- * 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.
748
+ * The read-only **`composed`** property of the or not the event will propagate across the shadow DOM boundary into the standard DOM.
671
749
  *
672
750
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed)
673
751
  */
674
752
  get composed(): boolean;
675
753
  /**
676
- * 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.
754
+ * The **`bubbles`** read-only property of the Event interface indicates whether the event bubbles up through the DOM tree or not.
677
755
  *
678
756
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles)
679
757
  */
680
758
  get bubbles(): boolean;
681
759
  /**
682
- * 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.
760
+ * The **`cancelable`** read-only property of the Event interface indicates whether the event can be canceled, and therefore prevented as if the event never happened.
683
761
  *
684
762
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable)
685
763
  */
686
764
  get cancelable(): boolean;
687
765
  /**
688
- * Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
766
+ * The **`defaultPrevented`** read-only property of the Event interface returns a boolean value indicating whether or not the call to Event.preventDefault() canceled the event.
689
767
  *
690
768
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented)
691
769
  */
692
770
  get defaultPrevented(): boolean;
693
771
  /**
772
+ * The Event property **`returnValue`** indicates whether the default action for this event has been prevented or not.
694
773
  * @deprecated
695
774
  *
696
775
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)
697
776
  */
698
777
  get returnValue(): boolean;
699
778
  /**
700
- * Returns the object whose event listener's callback is currently being invoked.
779
+ * The **`currentTarget`** read-only property of the Event interface identifies the element to which the event handler has been attached.
701
780
  *
702
781
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget)
703
782
  */
704
783
  get currentTarget(): EventTarget | undefined;
705
784
  /**
706
- * Returns the object to which event is dispatched (its target).
785
+ * The read-only **`target`** property of the dispatched.
707
786
  *
708
787
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)
709
788
  */
710
789
  get target(): EventTarget | undefined;
711
790
  /**
791
+ * The deprecated **`Event.srcElement`** is an alias for the Event.target property.
712
792
  * @deprecated
713
793
  *
714
794
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement)
715
795
  */
716
796
  get srcElement(): EventTarget | undefined;
717
797
  /**
718
- * Returns the event's timestamp as the number of milliseconds measured relative to the time origin.
798
+ * The **`timeStamp`** read-only property of the Event interface returns the time (in milliseconds) at which the event was created.
719
799
  *
720
800
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp)
721
801
  */
722
802
  get timeStamp(): number;
723
803
  /**
724
- * Returns true if event was dispatched by the user agent, and false otherwise.
804
+ * The **`isTrusted`** read-only property of the when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and `false` when the event was dispatched via The only exception is the `click` event, which initializes the `isTrusted` property to `false` in user agents.
725
805
  *
726
806
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
727
807
  */
728
808
  get isTrusted(): boolean;
729
809
  /**
810
+ * The **`cancelBubble`** property of the Event interface is deprecated.
730
811
  * @deprecated
731
812
  *
732
813
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble)
733
814
  */
734
815
  get cancelBubble(): boolean;
735
816
  /**
817
+ * The **`cancelBubble`** property of the Event interface is deprecated.
736
818
  * @deprecated
737
819
  *
738
820
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble)
739
821
  */
740
822
  set cancelBubble(value: boolean);
741
823
  /**
742
- * 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.
824
+ * The **`stopImmediatePropagation()`** method of the If several listeners are attached to the same element for the same event type, they are called in the order in which they were added.
743
825
  *
744
826
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation)
745
827
  */
746
828
  stopImmediatePropagation(): void;
747
829
  /**
748
- * 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.
830
+ * The **`preventDefault()`** method of the Event interface tells the user agent that if the event does not get explicitly handled, its default action should not be taken as it normally would be.
749
831
  *
750
832
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault)
751
833
  */
752
834
  preventDefault(): void;
753
835
  /**
754
- * When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
836
+ * The **`stopPropagation()`** method of the Event interface prevents further propagation of the current event in the capturing and bubbling phases.
755
837
  *
756
838
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation)
757
839
  */
758
840
  stopPropagation(): void;
759
841
  /**
760
- * 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.
842
+ * The **`composedPath()`** method of the Event interface returns the event's path which is an array of the objects on which listeners will be invoked.
761
843
  *
762
844
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath)
763
845
  */
@@ -782,7 +864,7 @@ type EventListenerOrEventListenerObject<EventType extends Event = Event> =
782
864
  | EventListener<EventType>
783
865
  | EventListenerObject<EventType>;
784
866
  /**
785
- * EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them.
867
+ * The **`EventTarget`** interface is implemented by objects that can receive events and may have listeners for them.
786
868
  *
787
869
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget)
788
870
  */
@@ -791,19 +873,7 @@ declare class EventTarget<
791
873
  > {
792
874
  constructor();
793
875
  /**
794
- * 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.
795
- *
796
- * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
797
- *
798
- * When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
799
- *
800
- * When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
801
- *
802
- * When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
803
- *
804
- * If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
805
- *
806
- * The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
876
+ * The **`addEventListener()`** method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
807
877
  *
808
878
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
809
879
  */
@@ -813,7 +883,7 @@ declare class EventTarget<
813
883
  options?: EventTargetAddEventListenerOptions | boolean,
814
884
  ): void;
815
885
  /**
816
- * Removes the event listener in target's event listener list with the same type, callback, and options.
886
+ * The **`removeEventListener()`** method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
817
887
  *
818
888
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
819
889
  */
@@ -823,7 +893,7 @@ declare class EventTarget<
823
893
  options?: EventTargetEventListenerOptions | boolean,
824
894
  ): void;
825
895
  /**
826
- * 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.
896
+ * The **`dispatchEvent()`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
827
897
  *
828
898
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
829
899
  */
@@ -842,50 +912,70 @@ interface EventTargetHandlerObject {
842
912
  handleEvent: (event: Event) => any | undefined;
843
913
  }
844
914
  /**
845
- * A controller object that allows you to abort one or more DOM requests as and when desired.
915
+ * The **`AbortController`** interface represents a controller object that allows you to abort one or more Web requests as and when desired.
846
916
  *
847
917
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController)
848
918
  */
849
919
  declare class AbortController {
850
920
  constructor();
851
921
  /**
852
- * Returns the AbortSignal object associated with this object.
922
+ * The **`signal`** read-only property of the AbortController interface returns an AbortSignal object instance, which can be used to communicate with/abort an asynchronous operation as desired.
853
923
  *
854
924
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal)
855
925
  */
856
926
  get signal(): AbortSignal;
857
927
  /**
858
- * 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.
928
+ * The **`abort()`** method of the AbortController interface aborts an asynchronous operation before it has completed.
859
929
  *
860
930
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort)
861
931
  */
862
932
  abort(reason?: any): void;
863
933
  }
864
934
  /**
865
- * 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.
935
+ * The **`AbortSignal`** interface represents a signal object that allows you to communicate with an asynchronous operation (such as a fetch request) and abort it if required via an AbortController object.
866
936
  *
867
937
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal)
868
938
  */
869
939
  declare abstract class AbortSignal extends EventTarget {
870
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */
940
+ /**
941
+ * The **`AbortSignal.abort()`** static method returns an AbortSignal that is already set as aborted (and which does not trigger an AbortSignal/abort_event event).
942
+ *
943
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static)
944
+ */
871
945
  static abort(reason?: any): AbortSignal;
872
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */
946
+ /**
947
+ * The **`AbortSignal.timeout()`** static method returns an AbortSignal that will automatically abort after a specified time.
948
+ *
949
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static)
950
+ */
873
951
  static timeout(delay: number): AbortSignal;
874
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */
952
+ /**
953
+ * The **`AbortSignal.any()`** static method takes an iterable of abort signals and returns an AbortSignal.
954
+ *
955
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static)
956
+ */
875
957
  static any(signals: AbortSignal[]): AbortSignal;
876
958
  /**
877
- * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
959
+ * The **`aborted`** read-only property returns a value that indicates whether the asynchronous operations the signal is communicating with are aborted (`true`) or not (`false`).
878
960
  *
879
961
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted)
880
962
  */
881
963
  get aborted(): boolean;
882
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) */
964
+ /**
965
+ * The **`reason`** read-only property returns a JavaScript value that indicates the abort reason.
966
+ *
967
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason)
968
+ */
883
969
  get reason(): any;
884
970
  /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */
885
971
  get onabort(): any | null;
886
972
  /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */
887
973
  set onabort(value: any | null);
888
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) */
974
+ /**
975
+ * The **`throwIfAborted()`** method throws the signal's abort AbortSignal.reason if the signal has been aborted; otherwise it does nothing.
976
+ *
977
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted)
978
+ */
889
979
  throwIfAborted(): void;
890
980
  }
891
981
  interface Scheduler {
@@ -895,19 +985,27 @@ interface SchedulerWaitOptions {
895
985
  signal?: AbortSignal;
896
986
  }
897
987
  /**
898
- * Extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries.
988
+ * The **`ExtendableEvent`** interface extends the lifetime of the `install` and `activate` events dispatched on the global scope as part of the service worker lifecycle.
899
989
  *
900
990
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent)
901
991
  */
902
992
  declare abstract class ExtendableEvent extends Event {
903
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent/waitUntil) */
993
+ /**
994
+ * The **`ExtendableEvent.waitUntil()`** method tells the event dispatcher that work is ongoing.
995
+ *
996
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent/waitUntil)
997
+ */
904
998
  waitUntil(promise: Promise<any>): void;
905
999
  }
906
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */
1000
+ /**
1001
+ * The **`CustomEvent`** interface represents events initialized by an application for any purpose.
1002
+ *
1003
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)
1004
+ */
907
1005
  declare class CustomEvent<T = any> extends Event {
908
1006
  constructor(type: string, init?: CustomEventCustomEventInit);
909
1007
  /**
910
- * Returns any custom data event was created with. Typically used for synthetic events.
1008
+ * The read-only **`detail`** property of the CustomEvent interface returns any data passed when initializing the event.
911
1009
  *
912
1010
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)
913
1011
  */
@@ -920,7 +1018,7 @@ interface CustomEventCustomEventInit {
920
1018
  detail?: any;
921
1019
  }
922
1020
  /**
923
- * A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system.
1021
+ * The **`Blob`** interface represents a blob, which is a file-like object of immutable, raw data; they can be read as text or binary data, or converted into a ReadableStream so its methods can be used for processing the data.
924
1022
  *
925
1023
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob)
926
1024
  */
@@ -929,26 +1027,54 @@ declare class Blob {
929
1027
  type?: ((ArrayBuffer | ArrayBufferView) | string | Blob)[],
930
1028
  options?: BlobOptions,
931
1029
  );
932
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
1030
+ /**
1031
+ * The **`size`** read-only property of the Blob interface returns the size of the Blob or File in bytes.
1032
+ *
1033
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size)
1034
+ */
933
1035
  get size(): number;
934
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */
1036
+ /**
1037
+ * The **`type`** read-only property of the Blob interface returns the MIME type of the file.
1038
+ *
1039
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type)
1040
+ */
935
1041
  get type(): string;
936
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */
1042
+ /**
1043
+ * The **`slice()`** method of the Blob interface creates and returns a new `Blob` object which contains data from a subset of the blob on which it's called.
1044
+ *
1045
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice)
1046
+ */
937
1047
  slice(start?: number, end?: number, type?: string): Blob;
938
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */
1048
+ /**
1049
+ * The **`arrayBuffer()`** method of the Blob interface returns a Promise that resolves with the contents of the blob as binary data contained in an ArrayBuffer.
1050
+ *
1051
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer)
1052
+ */
939
1053
  arrayBuffer(): Promise<ArrayBuffer>;
940
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/bytes) */
1054
+ /**
1055
+ * The **`bytes()`** method of the Blob interface returns a Promise that resolves with a Uint8Array containing the contents of the blob as an array of bytes.
1056
+ *
1057
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/bytes)
1058
+ */
941
1059
  bytes(): Promise<Uint8Array>;
942
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
1060
+ /**
1061
+ * The **`text()`** method of the string containing the contents of the blob, interpreted as UTF-8.
1062
+ *
1063
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text)
1064
+ */
943
1065
  text(): Promise<string>;
944
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */
1066
+ /**
1067
+ * The **`stream()`** method of the Blob interface returns a ReadableStream which upon reading returns the data contained within the `Blob`.
1068
+ *
1069
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream)
1070
+ */
945
1071
  stream(): ReadableStream;
946
1072
  }
947
1073
  interface BlobOptions {
948
1074
  type?: string;
949
1075
  }
950
1076
  /**
951
- * Provides information about files and allows JavaScript in a web page to access their content.
1077
+ * The **`File`** interface provides information about files and allows JavaScript in a web page to access their content.
952
1078
  *
953
1079
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File)
954
1080
  */
@@ -958,9 +1084,17 @@ declare class File extends Blob {
958
1084
  name: string,
959
1085
  options?: FileOptions,
960
1086
  );
961
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */
1087
+ /**
1088
+ * The **`name`** read-only property of the File interface returns the name of the file represented by a File object.
1089
+ *
1090
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name)
1091
+ */
962
1092
  get name(): string;
963
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */
1093
+ /**
1094
+ * The **`lastModified`** read-only property of the File interface provides the last modified date of the file as the number of milliseconds since the Unix epoch (January 1, 1970 at midnight).
1095
+ *
1096
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified)
1097
+ */
964
1098
  get lastModified(): number;
965
1099
  }
966
1100
  interface FileOptions {
@@ -973,7 +1107,11 @@ interface FileOptions {
973
1107
  * [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/cache/)
974
1108
  */
975
1109
  declare abstract class CacheStorage {
976
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) */
1110
+ /**
1111
+ * The **`open()`** method of the the Cache object matching the `cacheName`.
1112
+ *
1113
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open)
1114
+ */
977
1115
  open(cacheName: string): Promise<Cache>;
978
1116
  readonly default: Cache;
979
1117
  }
@@ -1009,12 +1147,17 @@ interface CacheQueryOptions {
1009
1147
  */
1010
1148
  declare abstract class Crypto {
1011
1149
  /**
1150
+ * The **`Crypto.subtle`** read-only property returns a cryptographic operations.
1012
1151
  * Available only in secure contexts.
1013
1152
  *
1014
1153
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle)
1015
1154
  */
1016
1155
  get subtle(): SubtleCrypto;
1017
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */
1156
+ /**
1157
+ * The **`Crypto.getRandomValues()`** method lets you get cryptographically strong random values.
1158
+ *
1159
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues)
1160
+ */
1018
1161
  getRandomValues<
1019
1162
  T extends
1020
1163
  | Int8Array
@@ -1027,6 +1170,7 @@ declare abstract class Crypto {
1027
1170
  | BigUint64Array,
1028
1171
  >(buffer: T): T;
1029
1172
  /**
1173
+ * The **`randomUUID()`** method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator.
1030
1174
  * Available only in secure contexts.
1031
1175
  *
1032
1176
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID)
@@ -1035,49 +1179,77 @@ declare abstract class Crypto {
1035
1179
  DigestStream: typeof DigestStream;
1036
1180
  }
1037
1181
  /**
1038
- * This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).
1182
+ * The **`SubtleCrypto`** interface of the Web Crypto API provides a number of low-level cryptographic functions.
1039
1183
  * Available only in secure contexts.
1040
1184
  *
1041
1185
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto)
1042
1186
  */
1043
1187
  declare abstract class SubtleCrypto {
1044
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt) */
1188
+ /**
1189
+ * The **`encrypt()`** method of the SubtleCrypto interface encrypts data.
1190
+ *
1191
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt)
1192
+ */
1045
1193
  encrypt(
1046
1194
  algorithm: string | SubtleCryptoEncryptAlgorithm,
1047
1195
  key: CryptoKey,
1048
1196
  plainText: ArrayBuffer | ArrayBufferView,
1049
1197
  ): Promise<ArrayBuffer>;
1050
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt) */
1198
+ /**
1199
+ * The **`decrypt()`** method of the SubtleCrypto interface decrypts some encrypted data.
1200
+ *
1201
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt)
1202
+ */
1051
1203
  decrypt(
1052
1204
  algorithm: string | SubtleCryptoEncryptAlgorithm,
1053
1205
  key: CryptoKey,
1054
1206
  cipherText: ArrayBuffer | ArrayBufferView,
1055
1207
  ): Promise<ArrayBuffer>;
1056
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign) */
1208
+ /**
1209
+ * The **`sign()`** method of the SubtleCrypto interface generates a digital signature.
1210
+ *
1211
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign)
1212
+ */
1057
1213
  sign(
1058
1214
  algorithm: string | SubtleCryptoSignAlgorithm,
1059
1215
  key: CryptoKey,
1060
1216
  data: ArrayBuffer | ArrayBufferView,
1061
1217
  ): Promise<ArrayBuffer>;
1062
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify) */
1218
+ /**
1219
+ * The **`verify()`** method of the SubtleCrypto interface verifies a digital signature.
1220
+ *
1221
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify)
1222
+ */
1063
1223
  verify(
1064
1224
  algorithm: string | SubtleCryptoSignAlgorithm,
1065
1225
  key: CryptoKey,
1066
1226
  signature: ArrayBuffer | ArrayBufferView,
1067
1227
  data: ArrayBuffer | ArrayBufferView,
1068
1228
  ): Promise<boolean>;
1069
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest) */
1229
+ /**
1230
+ * The **`digest()`** method of the SubtleCrypto interface generates a _digest_ of the given data, using the specified hash function.
1231
+ *
1232
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest)
1233
+ */
1070
1234
  digest(
1071
1235
  algorithm: string | SubtleCryptoHashAlgorithm,
1072
1236
  data: ArrayBuffer | ArrayBufferView,
1073
1237
  ): Promise<ArrayBuffer>;
1074
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
1238
+ /**
1239
+ * The **`generateKey()`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
1240
+ *
1241
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
1242
+ */
1075
1243
  generateKey(
1076
1244
  algorithm: string | SubtleCryptoGenerateKeyAlgorithm,
1077
1245
  extractable: boolean,
1078
1246
  keyUsages: string[],
1079
1247
  ): Promise<CryptoKey | CryptoKeyPair>;
1080
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */
1248
+ /**
1249
+ * The **`deriveKey()`** method of the SubtleCrypto interface can be used to derive a secret key from a master key.
1250
+ *
1251
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey)
1252
+ */
1081
1253
  deriveKey(
1082
1254
  algorithm: string | SubtleCryptoDeriveKeyAlgorithm,
1083
1255
  baseKey: CryptoKey,
@@ -1085,13 +1257,21 @@ declare abstract class SubtleCrypto {
1085
1257
  extractable: boolean,
1086
1258
  keyUsages: string[],
1087
1259
  ): Promise<CryptoKey>;
1088
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits) */
1260
+ /**
1261
+ * The **`deriveBits()`** method of the key.
1262
+ *
1263
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits)
1264
+ */
1089
1265
  deriveBits(
1090
1266
  algorithm: string | SubtleCryptoDeriveKeyAlgorithm,
1091
1267
  baseKey: CryptoKey,
1092
1268
  length?: number | null,
1093
1269
  ): Promise<ArrayBuffer>;
1094
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */
1270
+ /**
1271
+ * The **`importKey()`** method of the SubtleCrypto interface imports a key: that is, it takes as input a key in an external, portable format and gives you a CryptoKey object that you can use in the Web Crypto API.
1272
+ *
1273
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey)
1274
+ */
1095
1275
  importKey(
1096
1276
  format: string,
1097
1277
  keyData: (ArrayBuffer | ArrayBufferView) | JsonWebKey,
@@ -1099,16 +1279,28 @@ declare abstract class SubtleCrypto {
1099
1279
  extractable: boolean,
1100
1280
  keyUsages: string[],
1101
1281
  ): Promise<CryptoKey>;
1102
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey) */
1282
+ /**
1283
+ * The **`exportKey()`** method of the SubtleCrypto interface exports a key: that is, it takes as input a CryptoKey object and gives you the key in an external, portable format.
1284
+ *
1285
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey)
1286
+ */
1103
1287
  exportKey(format: string, key: CryptoKey): Promise<ArrayBuffer | JsonWebKey>;
1104
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey) */
1288
+ /**
1289
+ * The **`wrapKey()`** method of the SubtleCrypto interface 'wraps' a key.
1290
+ *
1291
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey)
1292
+ */
1105
1293
  wrapKey(
1106
1294
  format: string,
1107
1295
  key: CryptoKey,
1108
1296
  wrappingKey: CryptoKey,
1109
1297
  wrapAlgorithm: string | SubtleCryptoEncryptAlgorithm,
1110
1298
  ): Promise<ArrayBuffer>;
1111
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */
1299
+ /**
1300
+ * The **`unwrapKey()`** method of the SubtleCrypto interface 'unwraps' a key.
1301
+ *
1302
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)
1303
+ */
1112
1304
  unwrapKey(
1113
1305
  format: string,
1114
1306
  wrappedKey: ArrayBuffer | ArrayBufferView,
@@ -1124,17 +1316,29 @@ declare abstract class SubtleCrypto {
1124
1316
  ): boolean;
1125
1317
  }
1126
1318
  /**
1127
- * The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.
1319
+ * The **`CryptoKey`** interface of the Web Crypto API represents a cryptographic key obtained from one of the SubtleCrypto methods SubtleCrypto.generateKey, SubtleCrypto.deriveKey, SubtleCrypto.importKey, or SubtleCrypto.unwrapKey.
1128
1320
  * Available only in secure contexts.
1129
1321
  *
1130
1322
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey)
1131
1323
  */
1132
1324
  declare abstract class CryptoKey {
1133
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type) */
1325
+ /**
1326
+ * The read-only **`type`** property of the CryptoKey interface indicates which kind of key is represented by the object.
1327
+ *
1328
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type)
1329
+ */
1134
1330
  readonly type: string;
1135
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable) */
1331
+ /**
1332
+ * The read-only **`extractable`** property of the CryptoKey interface indicates whether or not the key may be extracted using `SubtleCrypto.exportKey()` or `SubtleCrypto.wrapKey()`.
1333
+ *
1334
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable)
1335
+ */
1136
1336
  readonly extractable: boolean;
1137
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm) */
1337
+ /**
1338
+ * The read-only **`algorithm`** property of the CryptoKey interface returns an object describing the algorithm for which this key can be used, and any associated extra parameters.
1339
+ *
1340
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm)
1341
+ */
1138
1342
  readonly algorithm:
1139
1343
  | CryptoKeyKeyAlgorithm
1140
1344
  | CryptoKeyAesKeyAlgorithm
@@ -1142,7 +1346,11 @@ declare abstract class CryptoKey {
1142
1346
  | CryptoKeyRsaKeyAlgorithm
1143
1347
  | CryptoKeyEllipticKeyAlgorithm
1144
1348
  | CryptoKeyArbitraryKeyAlgorithm;
1145
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) */
1349
+ /**
1350
+ * The read-only **`usages`** property of the CryptoKey interface indicates what can be done with the key.
1351
+ *
1352
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages)
1353
+ */
1146
1354
  readonly usages: string[];
1147
1355
  }
1148
1356
  interface CryptoKeyPair {
@@ -1251,24 +1459,14 @@ declare class DigestStream extends WritableStream<
1251
1459
  get bytesWritten(): number | bigint;
1252
1460
  }
1253
1461
  /**
1254
- * 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.
1462
+ * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, `KOI8-R`, `GBK`, etc.
1255
1463
  *
1256
1464
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)
1257
1465
  */
1258
1466
  declare class TextDecoder {
1259
1467
  constructor(label?: string, options?: TextDecoderConstructorOptions);
1260
1468
  /**
1261
- * 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.
1262
- *
1263
- * ```
1264
- * var string = "", decoder = new TextDecoder(encoding), buffer;
1265
- * while(buffer = next_chunk()) {
1266
- * string += decoder.decode(buffer, {stream:true});
1267
- * }
1268
- * string += decoder.decode(); // end-of-queue
1269
- * ```
1270
- *
1271
- * If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
1469
+ * The **`TextDecoder.decode()`** method returns a string containing text decoded from the buffer passed as a parameter.
1272
1470
  *
1273
1471
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode)
1274
1472
  */
@@ -1281,27 +1479,24 @@ declare class TextDecoder {
1281
1479
  get ignoreBOM(): boolean;
1282
1480
  }
1283
1481
  /**
1284
- * 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.
1482
+ * The **`TextEncoder`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes.
1285
1483
  *
1286
1484
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
1287
1485
  */
1288
1486
  declare class TextEncoder {
1289
1487
  constructor();
1290
1488
  /**
1291
- * Returns the result of running UTF-8's encoder.
1489
+ * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object.
1292
1490
  *
1293
1491
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
1294
1492
  */
1295
1493
  encode(input?: string): Uint8Array;
1296
1494
  /**
1297
- * 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.
1495
+ * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding.
1298
1496
  *
1299
1497
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)
1300
1498
  */
1301
- encodeInto(
1302
- input: string,
1303
- buffer: ArrayBuffer | ArrayBufferView,
1304
- ): TextEncoderEncodeIntoResult;
1499
+ encodeInto(input: string, buffer: Uint8Array): TextEncoderEncodeIntoResult;
1305
1500
  get encoding(): string;
1306
1501
  }
1307
1502
  interface TextDecoderConstructorOptions {
@@ -1316,21 +1511,41 @@ interface TextEncoderEncodeIntoResult {
1316
1511
  written: number;
1317
1512
  }
1318
1513
  /**
1319
- * Events providing information related to errors in scripts or in files.
1514
+ * The **`ErrorEvent`** interface represents events providing information related to errors in scripts or in files.
1320
1515
  *
1321
1516
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent)
1322
1517
  */
1323
1518
  declare class ErrorEvent extends Event {
1324
1519
  constructor(type: string, init?: ErrorEventErrorEventInit);
1325
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */
1520
+ /**
1521
+ * The **`filename`** read-only property of the ErrorEvent interface returns a string containing the name of the script file in which the error occurred.
1522
+ *
1523
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename)
1524
+ */
1326
1525
  get filename(): string;
1327
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */
1526
+ /**
1527
+ * The **`message`** read-only property of the ErrorEvent interface returns a string containing a human-readable error message describing the problem.
1528
+ *
1529
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message)
1530
+ */
1328
1531
  get message(): string;
1329
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */
1532
+ /**
1533
+ * The **`lineno`** read-only property of the ErrorEvent interface returns an integer containing the line number of the script file on which the error occurred.
1534
+ *
1535
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno)
1536
+ */
1330
1537
  get lineno(): number;
1331
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */
1538
+ /**
1539
+ * The **`colno`** read-only property of the ErrorEvent interface returns an integer containing the column number of the script file on which the error occurred.
1540
+ *
1541
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno)
1542
+ */
1332
1543
  get colno(): number;
1333
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */
1544
+ /**
1545
+ * The **`error`** read-only property of the ErrorEvent interface returns a JavaScript value, such as an Error or DOMException, representing the error associated with this event.
1546
+ *
1547
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error)
1548
+ */
1334
1549
  get error(): any;
1335
1550
  }
1336
1551
  interface ErrorEventErrorEventInit {
@@ -1341,38 +1556,38 @@ interface ErrorEventErrorEventInit {
1341
1556
  error?: any;
1342
1557
  }
1343
1558
  /**
1344
- * A message received by a target object.
1559
+ * The **`MessageEvent`** interface represents a message received by a target object.
1345
1560
  *
1346
1561
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent)
1347
1562
  */
1348
1563
  declare class MessageEvent extends Event {
1349
1564
  constructor(type: string, initializer: MessageEventInit);
1350
1565
  /**
1351
- * Returns the data of the message.
1566
+ * The **`data`** read-only property of the The data sent by the message emitter; this can be any data type, depending on what originated this event.
1352
1567
  *
1353
1568
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data)
1354
1569
  */
1355
1570
  readonly data: any;
1356
1571
  /**
1357
- * Returns the origin of the message, for server-sent events and cross-document messaging.
1572
+ * The **`origin`** read-only property of the origin of the message emitter.
1358
1573
  *
1359
1574
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin)
1360
1575
  */
1361
1576
  readonly origin: string | null;
1362
1577
  /**
1363
- * Returns the last event ID string, for server-sent events.
1578
+ * The **`lastEventId`** read-only property of the unique ID for the event.
1364
1579
  *
1365
1580
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId)
1366
1581
  */
1367
1582
  readonly lastEventId: string;
1368
1583
  /**
1369
- * Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects.
1584
+ * The **`source`** read-only property of the a WindowProxy, MessagePort, or a `MessageEventSource` (which can be a WindowProxy, message emitter.
1370
1585
  *
1371
1586
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source)
1372
1587
  */
1373
1588
  readonly source: MessagePort | null;
1374
1589
  /**
1375
- * Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.
1590
+ * The **`ports`** read-only property of the containing all MessagePort objects sent with the message, in order.
1376
1591
  *
1377
1592
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports)
1378
1593
  */
@@ -1382,27 +1597,78 @@ interface MessageEventInit {
1382
1597
  data: ArrayBuffer | string;
1383
1598
  }
1384
1599
  /**
1385
- * Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data".
1600
+ * The **`PromiseRejectionEvent`** interface represents events which are sent to the global script context when JavaScript Promises are rejected.
1601
+ *
1602
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent)
1603
+ */
1604
+ declare abstract class PromiseRejectionEvent extends Event {
1605
+ /**
1606
+ * The PromiseRejectionEvent interface's **`promise`** read-only property indicates the JavaScript rejected.
1607
+ *
1608
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise)
1609
+ */
1610
+ readonly promise: Promise<any>;
1611
+ /**
1612
+ * The PromiseRejectionEvent **`reason`** read-only property is any JavaScript value or Object which provides the reason passed into Promise.reject().
1613
+ *
1614
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason)
1615
+ */
1616
+ readonly reason: any;
1617
+ }
1618
+ /**
1619
+ * The **`FormData`** interface provides a way to construct a set of key/value pairs representing form fields and their values, which can be sent using the Window/fetch, XMLHttpRequest.send() or navigator.sendBeacon() methods.
1386
1620
  *
1387
1621
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData)
1388
1622
  */
1389
1623
  declare class FormData {
1390
1624
  constructor();
1391
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) */
1625
+ /**
1626
+ * The **`append()`** method of the FormData interface appends a new value onto an existing key inside a `FormData` object, or adds the key if it does not already exist.
1627
+ *
1628
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append)
1629
+ */
1392
1630
  append(name: string, value: string): void;
1393
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) */
1631
+ /**
1632
+ * The **`append()`** method of the FormData interface appends a new value onto an existing key inside a `FormData` object, or adds the key if it does not already exist.
1633
+ *
1634
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append)
1635
+ */
1394
1636
  append(name: string, value: Blob, filename?: string): void;
1395
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete) */
1637
+ /**
1638
+ * The **`delete()`** method of the FormData interface deletes a key and its value(s) from a `FormData` object.
1639
+ *
1640
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete)
1641
+ */
1396
1642
  delete(name: string): void;
1397
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get) */
1643
+ /**
1644
+ * The **`get()`** method of the FormData interface returns the first value associated with a given key from within a `FormData` object.
1645
+ *
1646
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get)
1647
+ */
1398
1648
  get(name: string): (File | string) | null;
1399
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll) */
1649
+ /**
1650
+ * The **`getAll()`** method of the FormData interface returns all the values associated with a given key from within a `FormData` object.
1651
+ *
1652
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll)
1653
+ */
1400
1654
  getAll(name: string): (File | string)[];
1401
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has) */
1655
+ /**
1656
+ * The **`has()`** method of the FormData interface returns whether a `FormData` object contains a certain key.
1657
+ *
1658
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has)
1659
+ */
1402
1660
  has(name: string): boolean;
1403
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) */
1661
+ /**
1662
+ * The **`set()`** method of the FormData interface sets a new value for an existing key inside a `FormData` object, or adds the key/value if it does not already exist.
1663
+ *
1664
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set)
1665
+ */
1404
1666
  set(name: string, value: string): void;
1405
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) */
1667
+ /**
1668
+ * The **`set()`** method of the FormData interface sets a new value for an existing key inside a `FormData` object, or adds the key/value if it does not already exist.
1669
+ *
1670
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set)
1671
+ */
1406
1672
  set(name: string, value: Blob, filename?: string): void;
1407
1673
  /* Returns an array of key, value pairs for every entry in the list. */
1408
1674
  entries(): IterableIterator<[key: string, value: File | string]>;
@@ -1528,14 +1794,22 @@ interface DocumentEnd {
1528
1794
  append(content: string, options?: ContentOptions): DocumentEnd;
1529
1795
  }
1530
1796
  /**
1531
- * This is the event type for fetch events dispatched on the service worker global scope. It contains information about the fetch, including the request and how the receiver will treat the response. It provides the event.respondWith() method, which allows us to provide a response to this fetch.
1797
+ * This is the event type for `fetch` events dispatched on the ServiceWorkerGlobalScope.
1532
1798
  *
1533
1799
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent)
1534
1800
  */
1535
1801
  declare abstract class FetchEvent extends ExtendableEvent {
1536
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/request) */
1802
+ /**
1803
+ * The **`request`** read-only property of the the event handler.
1804
+ *
1805
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/request)
1806
+ */
1537
1807
  readonly request: Request;
1538
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/respondWith) */
1808
+ /**
1809
+ * The **`respondWith()`** method of allows you to provide a promise for a Response yourself.
1810
+ *
1811
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/respondWith)
1812
+ */
1539
1813
  respondWith(promise: Response | Promise<Response>): void;
1540
1814
  passThroughOnException(): void;
1541
1815
  }
@@ -1544,22 +1818,42 @@ type HeadersInit =
1544
1818
  | Iterable<Iterable<string>>
1545
1819
  | Record<string, string>;
1546
1820
  /**
1547
- * This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists of zero or more name and value pairs.  You can add to this using methods like append() (see Examples.) In all methods of this interface, header names are matched by case-insensitive byte sequence.
1821
+ * The **`Headers`** interface of the Fetch API allows you to perform various actions on HTTP request and response headers.
1548
1822
  *
1549
1823
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers)
1550
1824
  */
1551
1825
  declare class Headers {
1552
1826
  constructor(init?: HeadersInit);
1553
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) */
1827
+ /**
1828
+ * The **`get()`** method of the Headers interface returns a byte string of all the values of a header within a `Headers` object with a given name.
1829
+ *
1830
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get)
1831
+ */
1554
1832
  get(name: string): string | null;
1555
1833
  getAll(name: string): string[];
1556
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has) */
1834
+ /**
1835
+ * The **`has()`** method of the Headers interface returns a boolean stating whether a `Headers` object contains a certain header.
1836
+ *
1837
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has)
1838
+ */
1557
1839
  has(name: string): boolean;
1558
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set) */
1840
+ /**
1841
+ * The **`set()`** method of the Headers interface sets a new value for an existing header inside a `Headers` object, or adds the header if it does not already exist.
1842
+ *
1843
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set)
1844
+ */
1559
1845
  set(name: string, value: string): void;
1560
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append) */
1846
+ /**
1847
+ * The **`append()`** method of the Headers interface appends a new value onto an existing header inside a `Headers` object, or adds the header if it does not already exist.
1848
+ *
1849
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append)
1850
+ */
1561
1851
  append(name: string, value: string): void;
1562
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete) */
1852
+ /**
1853
+ * The **`delete()`** method of the Headers interface deletes a header from the current `Headers` object.
1854
+ *
1855
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete)
1856
+ */
1563
1857
  delete(name: string): void;
1564
1858
  forEach<This = unknown>(
1565
1859
  callback: (this: This, value: string, key: string, parent: Headers) => void,
@@ -1600,7 +1894,7 @@ declare abstract class Body {
1600
1894
  blob(): Promise<Blob>;
1601
1895
  }
1602
1896
  /**
1603
- * This Fetch API interface represents the response to a request.
1897
+ * The **`Response`** interface of the Fetch API represents the response to a request.
1604
1898
  *
1605
1899
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)
1606
1900
  */
@@ -1612,28 +1906,60 @@ declare var Response: {
1612
1906
  json(any: any, maybeInit?: ResponseInit | Response): Response;
1613
1907
  };
1614
1908
  /**
1615
- * This Fetch API interface represents the response to a request.
1909
+ * The **`Response`** interface of the Fetch API represents the response to a request.
1616
1910
  *
1617
1911
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)
1618
1912
  */
1619
1913
  interface Response extends Body {
1620
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone) */
1914
+ /**
1915
+ * The **`clone()`** method of the Response interface creates a clone of a response object, identical in every way, but stored in a different variable.
1916
+ *
1917
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone)
1918
+ */
1621
1919
  clone(): Response;
1622
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status) */
1920
+ /**
1921
+ * The **`status`** read-only property of the Response interface contains the HTTP status codes of the response.
1922
+ *
1923
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status)
1924
+ */
1623
1925
  status: number;
1624
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText) */
1926
+ /**
1927
+ * The **`statusText`** read-only property of the Response interface contains the status message corresponding to the HTTP status code in Response.status.
1928
+ *
1929
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText)
1930
+ */
1625
1931
  statusText: string;
1626
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers) */
1932
+ /**
1933
+ * The **`headers`** read-only property of the with the response.
1934
+ *
1935
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers)
1936
+ */
1627
1937
  headers: Headers;
1628
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok) */
1938
+ /**
1939
+ * The **`ok`** read-only property of the Response interface contains a Boolean stating whether the response was successful (status in the range 200-299) or not.
1940
+ *
1941
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok)
1942
+ */
1629
1943
  ok: boolean;
1630
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected) */
1944
+ /**
1945
+ * The **`redirected`** read-only property of the Response interface indicates whether or not the response is the result of a request you made which was redirected.
1946
+ *
1947
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected)
1948
+ */
1631
1949
  redirected: boolean;
1632
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url) */
1950
+ /**
1951
+ * The **`url`** read-only property of the Response interface contains the URL of the response.
1952
+ *
1953
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url)
1954
+ */
1633
1955
  url: string;
1634
1956
  webSocket: WebSocket | null;
1635
1957
  cf: any | undefined;
1636
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type) */
1958
+ /**
1959
+ * The **`type`** read-only property of the Response interface contains the type of the response.
1960
+ *
1961
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type)
1962
+ */
1637
1963
  type: "default" | "error";
1638
1964
  }
1639
1965
  interface ResponseInit {
@@ -1648,7 +1974,7 @@ type RequestInfo<CfHostMetadata = unknown, Cf = CfProperties<CfHostMetadata>> =
1648
1974
  | Request<CfHostMetadata, Cf>
1649
1975
  | string;
1650
1976
  /**
1651
- * This Fetch API interface represents a resource request.
1977
+ * The **`Request`** interface of the Fetch API represents a resource request.
1652
1978
  *
1653
1979
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request)
1654
1980
  */
@@ -1660,54 +1986,58 @@ declare var Request: {
1660
1986
  ): Request<CfHostMetadata, Cf>;
1661
1987
  };
1662
1988
  /**
1663
- * This Fetch API interface represents a resource request.
1989
+ * The **`Request`** interface of the Fetch API represents a resource request.
1664
1990
  *
1665
1991
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request)
1666
1992
  */
1667
1993
  interface Request<CfHostMetadata = unknown, Cf = CfProperties<CfHostMetadata>>
1668
1994
  extends Body {
1669
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone) */
1995
+ /**
1996
+ * The **`clone()`** method of the Request interface creates a copy of the current `Request` object.
1997
+ *
1998
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone)
1999
+ */
1670
2000
  clone(): Request<CfHostMetadata, Cf>;
1671
2001
  /**
1672
- * Returns request's HTTP method, which is "GET" by default.
2002
+ * The **`method`** read-only property of the `POST`, etc.) A String indicating the method of the request.
1673
2003
  *
1674
2004
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method)
1675
2005
  */
1676
2006
  method: string;
1677
2007
  /**
1678
- * Returns the URL of request as a string.
2008
+ * The **`url`** read-only property of the Request interface contains the URL of the request.
1679
2009
  *
1680
2010
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/url)
1681
2011
  */
1682
2012
  url: string;
1683
2013
  /**
1684
- * Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header.
2014
+ * The **`headers`** read-only property of the with the request.
1685
2015
  *
1686
2016
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/headers)
1687
2017
  */
1688
2018
  headers: Headers;
1689
2019
  /**
1690
- * Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default.
2020
+ * The **`redirect`** read-only property of the Request interface contains the mode for how redirects are handled.
1691
2021
  *
1692
2022
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/redirect)
1693
2023
  */
1694
2024
  redirect: string;
1695
2025
  fetcher: Fetcher | null;
1696
2026
  /**
1697
- * Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler.
2027
+ * The read-only **`signal`** property of the Request interface returns the AbortSignal associated with the request.
1698
2028
  *
1699
2029
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/signal)
1700
2030
  */
1701
2031
  signal: AbortSignal;
1702
2032
  cf: Cf | undefined;
1703
2033
  /**
1704
- * Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI]
2034
+ * The **`integrity`** read-only property of the Request interface contains the subresource integrity value of the request.
1705
2035
  *
1706
2036
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity)
1707
2037
  */
1708
2038
  integrity: string;
1709
2039
  /**
1710
- * Returns a boolean indicating whether or not request can outlive the global in which it was created.
2040
+ * The **`keepalive`** read-only property of the Request interface contains the request's `keepalive` setting (`true` or `false`), which indicates whether the browser will keep the associated request alive if the page that initiated it is unloaded before the request is complete.
1711
2041
  *
1712
2042
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive)
1713
2043
  */
@@ -2215,30 +2545,58 @@ type ReadableStreamReadResult<R = any> =
2215
2545
  value?: undefined;
2216
2546
  };
2217
2547
  /**
2218
- * 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.
2548
+ * The `ReadableStream` interface of the Streams API represents a readable stream of byte data.
2219
2549
  *
2220
2550
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)
2221
2551
  */
2222
2552
  interface ReadableStream<R = any> {
2223
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked) */
2553
+ /**
2554
+ * The **`locked`** read-only property of the ReadableStream interface returns whether or not the readable stream is locked to a reader.
2555
+ *
2556
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked)
2557
+ */
2224
2558
  get locked(): boolean;
2225
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel) */
2559
+ /**
2560
+ * The **`cancel()`** method of the ReadableStream interface returns a Promise that resolves when the stream is canceled.
2561
+ *
2562
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel)
2563
+ */
2226
2564
  cancel(reason?: any): Promise<void>;
2227
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) */
2565
+ /**
2566
+ * The **`getReader()`** method of the ReadableStream interface creates a reader and locks the stream to it.
2567
+ *
2568
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader)
2569
+ */
2228
2570
  getReader(): ReadableStreamDefaultReader<R>;
2229
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) */
2571
+ /**
2572
+ * The **`getReader()`** method of the ReadableStream interface creates a reader and locks the stream to it.
2573
+ *
2574
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader)
2575
+ */
2230
2576
  getReader(options: ReadableStreamGetReaderOptions): ReadableStreamBYOBReader;
2231
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough) */
2577
+ /**
2578
+ * The **`pipeThrough()`** method of the ReadableStream interface provides a chainable way of piping the current stream through a transform stream or any other writable/readable pair.
2579
+ *
2580
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough)
2581
+ */
2232
2582
  pipeThrough<T>(
2233
2583
  transform: ReadableWritablePair<T, R>,
2234
2584
  options?: StreamPipeOptions,
2235
2585
  ): ReadableStream<T>;
2236
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo) */
2586
+ /**
2587
+ * The **`pipeTo()`** method of the ReadableStream interface pipes the current `ReadableStream` to a given WritableStream and returns a Promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
2588
+ *
2589
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo)
2590
+ */
2237
2591
  pipeTo(
2238
2592
  destination: WritableStream<R>,
2239
2593
  options?: StreamPipeOptions,
2240
2594
  ): Promise<void>;
2241
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee) */
2595
+ /**
2596
+ * The **`tee()`** method of the two-element array containing the two resulting branches as new ReadableStream instances.
2597
+ *
2598
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee)
2599
+ */
2242
2600
  tee(): [ReadableStream<R>, ReadableStream<R>];
2243
2601
  values(options?: ReadableStreamValuesOptions): AsyncIterableIterator<R>;
2244
2602
  [Symbol.asyncIterator](
@@ -2246,7 +2604,7 @@ interface ReadableStream<R = any> {
2246
2604
  ): AsyncIterableIterator<R>;
2247
2605
  }
2248
2606
  /**
2249
- * 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.
2607
+ * The `ReadableStream` interface of the Streams API represents a readable stream of byte data.
2250
2608
  *
2251
2609
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)
2252
2610
  */
@@ -2261,26 +2619,50 @@ declare const ReadableStream: {
2261
2619
  strategy?: QueuingStrategy<R>,
2262
2620
  ): ReadableStream<R>;
2263
2621
  };
2264
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader) */
2622
+ /**
2623
+ * The **`ReadableStreamDefaultReader`** interface of the Streams API represents a default reader that can be used to read stream data supplied from a network (such as a fetch request).
2624
+ *
2625
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader)
2626
+ */
2265
2627
  declare class ReadableStreamDefaultReader<R = any> {
2266
2628
  constructor(stream: ReadableStream);
2267
2629
  get closed(): Promise<void>;
2268
2630
  cancel(reason?: any): Promise<void>;
2269
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read) */
2631
+ /**
2632
+ * The **`read()`** method of the ReadableStreamDefaultReader interface returns a Promise providing access to the next chunk in the stream's internal queue.
2633
+ *
2634
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read)
2635
+ */
2270
2636
  read(): Promise<ReadableStreamReadResult<R>>;
2271
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock) */
2637
+ /**
2638
+ * The **`releaseLock()`** method of the ReadableStreamDefaultReader interface releases the reader's lock on the stream.
2639
+ *
2640
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock)
2641
+ */
2272
2642
  releaseLock(): void;
2273
2643
  }
2274
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */
2644
+ /**
2645
+ * The `ReadableStreamBYOBReader` interface of the Streams API defines a reader for a ReadableStream that supports zero-copy reading from an underlying byte source.
2646
+ *
2647
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader)
2648
+ */
2275
2649
  declare class ReadableStreamBYOBReader {
2276
2650
  constructor(stream: ReadableStream);
2277
2651
  get closed(): Promise<void>;
2278
2652
  cancel(reason?: any): Promise<void>;
2279
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */
2653
+ /**
2654
+ * The **`read()`** method of the ReadableStreamBYOBReader interface is used to read data into a view on a user-supplied buffer from an associated readable byte stream.
2655
+ *
2656
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
2657
+ */
2280
2658
  read<T extends ArrayBufferView>(
2281
2659
  view: T,
2282
2660
  ): Promise<ReadableStreamReadResult<T>>;
2283
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */
2661
+ /**
2662
+ * The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
2663
+ *
2664
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock)
2665
+ */
2284
2666
  releaseLock(): void;
2285
2667
  readAtLeast<T extends ArrayBufferView>(
2286
2668
  minElements: number,
@@ -2298,60 +2680,148 @@ interface ReadableStreamGetReaderOptions {
2298
2680
  */
2299
2681
  mode: "byob";
2300
2682
  }
2301
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */
2683
+ /**
2684
+ * The **`ReadableStreamBYOBRequest`** interface of the Streams API represents a 'pull request' for data from an underlying source that will made as a zero-copy transfer to a consumer (bypassing the stream's internal queues).
2685
+ *
2686
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest)
2687
+ */
2302
2688
  interface ReadableStreamBYOBRequest {
2303
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) */
2689
+ /**
2690
+ * The **`view`** getter property of the ReadableStreamBYOBRequest interface returns the current view.
2691
+ *
2692
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view)
2693
+ */
2304
2694
  get view(): Uint8Array | null;
2305
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) */
2695
+ /**
2696
+ * The **`respond()`** method of the ReadableStreamBYOBRequest interface is used to signal to the associated readable byte stream that the specified number of bytes were written into the ReadableStreamBYOBRequest.view.
2697
+ *
2698
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond)
2699
+ */
2306
2700
  respond(bytesWritten: number): void;
2307
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) */
2701
+ /**
2702
+ * The **`respondWithNewView()`** method of the ReadableStreamBYOBRequest interface specifies a new view that the consumer of the associated readable byte stream should write to instead of ReadableStreamBYOBRequest.view.
2703
+ *
2704
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView)
2705
+ */
2308
2706
  respondWithNewView(view: ArrayBuffer | ArrayBufferView): void;
2309
2707
  get atLeast(): number | null;
2310
2708
  }
2311
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController) */
2709
+ /**
2710
+ * The **`ReadableStreamDefaultController`** interface of the Streams API represents a controller allowing control of a ReadableStream's state and internal queue.
2711
+ *
2712
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController)
2713
+ */
2312
2714
  interface ReadableStreamDefaultController<R = any> {
2313
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize) */
2715
+ /**
2716
+ * The **`desiredSize`** read-only property of the required to fill the stream's internal queue.
2717
+ *
2718
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize)
2719
+ */
2314
2720
  get desiredSize(): number | null;
2315
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close) */
2721
+ /**
2722
+ * The **`close()`** method of the ReadableStreamDefaultController interface closes the associated stream.
2723
+ *
2724
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close)
2725
+ */
2316
2726
  close(): void;
2317
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue) */
2727
+ /**
2728
+ * The **`enqueue()`** method of the ```js-nolint enqueue(chunk) ``` - `chunk` - : The chunk to enqueue.
2729
+ *
2730
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue)
2731
+ */
2318
2732
  enqueue(chunk?: R): void;
2319
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error) */
2733
+ /**
2734
+ * The **`error()`** method of the with the associated stream to error.
2735
+ *
2736
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error)
2737
+ */
2320
2738
  error(reason: any): void;
2321
2739
  }
2322
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController) */
2740
+ /**
2741
+ * The **`ReadableByteStreamController`** interface of the Streams API represents a controller for a readable byte stream.
2742
+ *
2743
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController)
2744
+ */
2323
2745
  interface ReadableByteStreamController {
2324
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest) */
2746
+ /**
2747
+ * The **`byobRequest`** read-only property of the ReadableByteStreamController interface returns the current BYOB request, or `null` if there are no pending requests.
2748
+ *
2749
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest)
2750
+ */
2325
2751
  get byobRequest(): ReadableStreamBYOBRequest | null;
2326
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize) */
2752
+ /**
2753
+ * The **`desiredSize`** read-only property of the ReadableByteStreamController interface returns the number of bytes required to fill the stream's internal queue to its 'desired size'.
2754
+ *
2755
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize)
2756
+ */
2327
2757
  get desiredSize(): number | null;
2328
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close) */
2758
+ /**
2759
+ * The **`close()`** method of the ReadableByteStreamController interface closes the associated stream.
2760
+ *
2761
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close)
2762
+ */
2329
2763
  close(): void;
2330
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue) */
2764
+ /**
2765
+ * The **`enqueue()`** method of the ReadableByteStreamController interface enqueues a given chunk on the associated readable byte stream (the chunk is copied into the stream's internal queues).
2766
+ *
2767
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue)
2768
+ */
2331
2769
  enqueue(chunk: ArrayBuffer | ArrayBufferView): void;
2332
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error) */
2770
+ /**
2771
+ * The **`error()`** method of the ReadableByteStreamController interface causes any future interactions with the associated stream to error with the specified reason.
2772
+ *
2773
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error)
2774
+ */
2333
2775
  error(reason: any): void;
2334
2776
  }
2335
2777
  /**
2336
- * 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.
2778
+ * The **`WritableStreamDefaultController`** interface of the Streams API represents a controller allowing control of a WritableStream's state.
2337
2779
  *
2338
2780
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController)
2339
2781
  */
2340
2782
  interface WritableStreamDefaultController {
2341
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal) */
2783
+ /**
2784
+ * The read-only **`signal`** property of the WritableStreamDefaultController interface returns the AbortSignal associated with the controller.
2785
+ *
2786
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal)
2787
+ */
2342
2788
  get signal(): AbortSignal;
2343
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) */
2789
+ /**
2790
+ * The **`error()`** method of the with the associated stream to error.
2791
+ *
2792
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error)
2793
+ */
2344
2794
  error(reason?: any): void;
2345
2795
  }
2346
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) */
2796
+ /**
2797
+ * The **`TransformStreamDefaultController`** interface of the Streams API provides methods to manipulate the associated ReadableStream and WritableStream.
2798
+ *
2799
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController)
2800
+ */
2347
2801
  interface TransformStreamDefaultController<O = any> {
2348
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */
2802
+ /**
2803
+ * The **`desiredSize`** read-only property of the TransformStreamDefaultController interface returns the desired size to fill the queue of the associated ReadableStream.
2804
+ *
2805
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize)
2806
+ */
2349
2807
  get desiredSize(): number | null;
2350
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) */
2808
+ /**
2809
+ * The **`enqueue()`** method of the TransformStreamDefaultController interface enqueues the given chunk in the readable side of the stream.
2810
+ *
2811
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue)
2812
+ */
2351
2813
  enqueue(chunk?: O): void;
2352
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error) */
2814
+ /**
2815
+ * The **`error()`** method of the TransformStreamDefaultController interface errors both sides of the stream.
2816
+ *
2817
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error)
2818
+ */
2353
2819
  error(reason: any): void;
2354
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate) */
2820
+ /**
2821
+ * The **`terminate()`** method of the TransformStreamDefaultController interface closes the readable side and errors the writable side of the stream.
2822
+ *
2823
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate)
2824
+ */
2355
2825
  terminate(): void;
2356
2826
  }
2357
2827
  interface ReadableWritablePair<R = any, W = any> {
@@ -2364,7 +2834,7 @@ interface ReadableWritablePair<R = any, W = any> {
2364
2834
  readable: ReadableStream<R>;
2365
2835
  }
2366
2836
  /**
2367
- * 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.
2837
+ * The **`WritableStream`** interface of the Streams API provides a standard abstraction for writing streaming data to a destination, known as a sink.
2368
2838
  *
2369
2839
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream)
2370
2840
  */
@@ -2373,47 +2843,103 @@ declare class WritableStream<W = any> {
2373
2843
  underlyingSink?: UnderlyingSink,
2374
2844
  queuingStrategy?: QueuingStrategy,
2375
2845
  );
2376
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked) */
2846
+ /**
2847
+ * The **`locked`** read-only property of the WritableStream interface returns a boolean indicating whether the `WritableStream` is locked to a writer.
2848
+ *
2849
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked)
2850
+ */
2377
2851
  get locked(): boolean;
2378
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort) */
2852
+ /**
2853
+ * The **`abort()`** method of the WritableStream interface aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
2854
+ *
2855
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort)
2856
+ */
2379
2857
  abort(reason?: any): Promise<void>;
2380
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close) */
2858
+ /**
2859
+ * The **`close()`** method of the WritableStream interface closes the associated stream.
2860
+ *
2861
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close)
2862
+ */
2381
2863
  close(): Promise<void>;
2382
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter) */
2864
+ /**
2865
+ * The **`getWriter()`** method of the WritableStream interface returns a new instance of WritableStreamDefaultWriter and locks the stream to that instance.
2866
+ *
2867
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter)
2868
+ */
2383
2869
  getWriter(): WritableStreamDefaultWriter<W>;
2384
2870
  }
2385
2871
  /**
2386
- * 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.
2872
+ * The **`WritableStreamDefaultWriter`** interface of the Streams API 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.
2387
2873
  *
2388
2874
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter)
2389
2875
  */
2390
2876
  declare class WritableStreamDefaultWriter<W = any> {
2391
2877
  constructor(stream: WritableStream);
2392
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed) */
2878
+ /**
2879
+ * The **`closed`** read-only property of the the stream errors or the writer's lock is released.
2880
+ *
2881
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed)
2882
+ */
2393
2883
  get closed(): Promise<void>;
2394
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready) */
2884
+ /**
2885
+ * The **`ready`** read-only property of the that resolves when the desired size of the stream's internal queue transitions from non-positive to positive, signaling that it is no longer applying backpressure.
2886
+ *
2887
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready)
2888
+ */
2395
2889
  get ready(): Promise<void>;
2396
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize) */
2890
+ /**
2891
+ * The **`desiredSize`** read-only property of the to fill the stream's internal queue.
2892
+ *
2893
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize)
2894
+ */
2397
2895
  get desiredSize(): number | null;
2398
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort) */
2896
+ /**
2897
+ * The **`abort()`** method of the the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
2898
+ *
2899
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort)
2900
+ */
2399
2901
  abort(reason?: any): Promise<void>;
2400
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close) */
2902
+ /**
2903
+ * The **`close()`** method of the stream.
2904
+ *
2905
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close)
2906
+ */
2401
2907
  close(): Promise<void>;
2402
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write) */
2908
+ /**
2909
+ * The **`write()`** method of the operation.
2910
+ *
2911
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write)
2912
+ */
2403
2913
  write(chunk?: W): Promise<void>;
2404
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock) */
2914
+ /**
2915
+ * The **`releaseLock()`** method of the corresponding stream.
2916
+ *
2917
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock)
2918
+ */
2405
2919
  releaseLock(): void;
2406
2920
  }
2407
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream) */
2921
+ /**
2922
+ * The **`TransformStream`** interface of the Streams API represents a concrete implementation of the pipe chain _transform stream_ concept.
2923
+ *
2924
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream)
2925
+ */
2408
2926
  declare class TransformStream<I = any, O = any> {
2409
2927
  constructor(
2410
2928
  transformer?: Transformer<I, O>,
2411
2929
  writableStrategy?: QueuingStrategy<I>,
2412
2930
  readableStrategy?: QueuingStrategy<O>,
2413
2931
  );
2414
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable) */
2932
+ /**
2933
+ * The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this `TransformStream`.
2934
+ *
2935
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable)
2936
+ */
2415
2937
  get readable(): ReadableStream<O>;
2416
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable) */
2938
+ /**
2939
+ * The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this `TransformStream`.
2940
+ *
2941
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable)
2942
+ */
2417
2943
  get writable(): WritableStream<I>;
2418
2944
  }
2419
2945
  declare class FixedLengthStream extends IdentityTransformStream {
@@ -2434,26 +2960,42 @@ interface IdentityTransformStreamQueuingStrategy {
2434
2960
  interface ReadableStreamValuesOptions {
2435
2961
  preventCancel?: boolean;
2436
2962
  }
2437
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */
2963
+ /**
2964
+ * The **`CompressionStream`** interface of the Compression Streams API is an API for compressing a stream of data.
2965
+ *
2966
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
2967
+ */
2438
2968
  declare class CompressionStream extends TransformStream<
2439
2969
  ArrayBuffer | ArrayBufferView,
2440
2970
  Uint8Array
2441
2971
  > {
2442
2972
  constructor(format: "gzip" | "deflate" | "deflate-raw");
2443
2973
  }
2444
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */
2974
+ /**
2975
+ * The **`DecompressionStream`** interface of the Compression Streams API is an API for decompressing a stream of data.
2976
+ *
2977
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
2978
+ */
2445
2979
  declare class DecompressionStream extends TransformStream<
2446
2980
  ArrayBuffer | ArrayBufferView,
2447
2981
  Uint8Array
2448
2982
  > {
2449
2983
  constructor(format: "gzip" | "deflate" | "deflate-raw");
2450
2984
  }
2451
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream) */
2985
+ /**
2986
+ * The **`TextEncoderStream`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding.
2987
+ *
2988
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
2989
+ */
2452
2990
  declare class TextEncoderStream extends TransformStream<string, Uint8Array> {
2453
2991
  constructor();
2454
2992
  get encoding(): string;
2455
2993
  }
2456
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream) */
2994
+ /**
2995
+ * The **`TextDecoderStream`** interface of the Encoding API converts a stream of text in a binary encoding, such as UTF-8 etc., to a stream of strings.
2996
+ *
2997
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)
2998
+ */
2457
2999
  declare class TextDecoderStream extends TransformStream<
2458
3000
  ArrayBuffer | ArrayBufferView,
2459
3001
  string
@@ -2468,7 +3010,7 @@ interface TextDecoderStreamTextDecoderStreamInit {
2468
3010
  ignoreBOM?: boolean;
2469
3011
  }
2470
3012
  /**
2471
- * This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams.
3013
+ * The **`ByteLengthQueuingStrategy`** interface of the Streams API provides a built-in byte length queuing strategy that can be used when constructing streams.
2472
3014
  *
2473
3015
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy)
2474
3016
  */
@@ -2476,19 +3018,27 @@ declare class ByteLengthQueuingStrategy
2476
3018
  implements QueuingStrategy<ArrayBufferView>
2477
3019
  {
2478
3020
  constructor(init: QueuingStrategyInit);
2479
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark) */
3021
+ /**
3022
+ * The read-only **`ByteLengthQueuingStrategy.highWaterMark`** property returns the total number of bytes that can be contained in the internal queue before backpressure is applied.
3023
+ *
3024
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark)
3025
+ */
2480
3026
  get highWaterMark(): number;
2481
3027
  /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */
2482
3028
  get size(): (chunk?: any) => number;
2483
3029
  }
2484
3030
  /**
2485
- * This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams.
3031
+ * The **`CountQueuingStrategy`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams.
2486
3032
  *
2487
3033
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy)
2488
3034
  */
2489
3035
  declare class CountQueuingStrategy implements QueuingStrategy {
2490
3036
  constructor(init: QueuingStrategyInit);
2491
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark) */
3037
+ /**
3038
+ * The read-only **`CountQueuingStrategy.highWaterMark`** property returns the total number of chunks that can be contained in the internal queue before backpressure is applied.
3039
+ *
3040
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark)
3041
+ */
2492
3042
  get highWaterMark(): number;
2493
3043
  /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */
2494
3044
  get size(): (chunk?: any) => number;
@@ -2621,62 +3171,158 @@ interface UnsafeTraceMetrics {
2621
3171
  fromTrace(item: TraceItem): TraceMetrics;
2622
3172
  }
2623
3173
  /**
2624
- * The URL interface represents an object providing static methods used for creating object URLs.
3174
+ * The **`URL`** interface is used to parse, construct, normalize, and encode URL.
2625
3175
  *
2626
3176
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL)
2627
3177
  */
2628
3178
  declare class URL {
2629
3179
  constructor(url: string | URL, base?: string | URL);
2630
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href) */
3180
+ /**
3181
+ * The **`href`** property of the URL interface is a string containing the whole URL.
3182
+ *
3183
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href)
3184
+ */
2631
3185
  get href(): string;
2632
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href) */
3186
+ /**
3187
+ * The **`href`** property of the URL interface is a string containing the whole URL.
3188
+ *
3189
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href)
3190
+ */
2633
3191
  set href(value: string);
2634
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin) */
3192
+ /**
3193
+ * The **`origin`** read-only property of the URL interface returns a string containing the Unicode serialization of the origin of the represented URL.
3194
+ *
3195
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin)
3196
+ */
2635
3197
  get origin(): string;
2636
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol) */
3198
+ /**
3199
+ * The **`protocol`** property of the URL interface is a string containing the protocol or scheme of the URL, including the final `':'`.
3200
+ *
3201
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol)
3202
+ */
2637
3203
  get protocol(): string;
2638
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol) */
3204
+ /**
3205
+ * The **`protocol`** property of the URL interface is a string containing the protocol or scheme of the URL, including the final `':'`.
3206
+ *
3207
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol)
3208
+ */
2639
3209
  set protocol(value: string);
2640
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username) */
3210
+ /**
3211
+ * The **`username`** property of the URL interface is a string containing the username component of the URL.
3212
+ *
3213
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username)
3214
+ */
2641
3215
  get username(): string;
2642
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username) */
3216
+ /**
3217
+ * The **`username`** property of the URL interface is a string containing the username component of the URL.
3218
+ *
3219
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username)
3220
+ */
2643
3221
  set username(value: string);
2644
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password) */
3222
+ /**
3223
+ * The **`password`** property of the URL interface is a string containing the password component of the URL.
3224
+ *
3225
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password)
3226
+ */
2645
3227
  get password(): string;
2646
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password) */
3228
+ /**
3229
+ * The **`password`** property of the URL interface is a string containing the password component of the URL.
3230
+ *
3231
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password)
3232
+ */
2647
3233
  set password(value: string);
2648
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host) */
3234
+ /**
3235
+ * The **`host`** property of the URL interface is a string containing the host, which is the URL.hostname, and then, if the port of the URL is nonempty, a `':'`, followed by the URL.port of the URL.
3236
+ *
3237
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host)
3238
+ */
2649
3239
  get host(): string;
2650
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host) */
3240
+ /**
3241
+ * The **`host`** property of the URL interface is a string containing the host, which is the URL.hostname, and then, if the port of the URL is nonempty, a `':'`, followed by the URL.port of the URL.
3242
+ *
3243
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host)
3244
+ */
2651
3245
  set host(value: string);
2652
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname) */
3246
+ /**
3247
+ * The **`hostname`** property of the URL interface is a string containing either the domain name or IP address of the URL.
3248
+ *
3249
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname)
3250
+ */
2653
3251
  get hostname(): string;
2654
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname) */
3252
+ /**
3253
+ * The **`hostname`** property of the URL interface is a string containing either the domain name or IP address of the URL.
3254
+ *
3255
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname)
3256
+ */
2655
3257
  set hostname(value: string);
2656
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port) */
3258
+ /**
3259
+ * The **`port`** property of the URL interface is a string containing the port number of the URL.
3260
+ *
3261
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port)
3262
+ */
2657
3263
  get port(): string;
2658
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port) */
3264
+ /**
3265
+ * The **`port`** property of the URL interface is a string containing the port number of the URL.
3266
+ *
3267
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port)
3268
+ */
2659
3269
  set port(value: string);
2660
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname) */
3270
+ /**
3271
+ * The **`pathname`** property of the URL interface represents a location in a hierarchical structure.
3272
+ *
3273
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname)
3274
+ */
2661
3275
  get pathname(): string;
2662
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname) */
3276
+ /**
3277
+ * The **`pathname`** property of the URL interface represents a location in a hierarchical structure.
3278
+ *
3279
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname)
3280
+ */
2663
3281
  set pathname(value: string);
2664
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search) */
3282
+ /**
3283
+ * The **`search`** property of the URL interface is a search string, also called a _query string_, that is a string containing a `'?'` followed by the parameters of the URL.
3284
+ *
3285
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search)
3286
+ */
2665
3287
  get search(): string;
2666
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search) */
3288
+ /**
3289
+ * The **`search`** property of the URL interface is a search string, also called a _query string_, that is a string containing a `'?'` followed by the parameters of the URL.
3290
+ *
3291
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search)
3292
+ */
2667
3293
  set search(value: string);
2668
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams) */
3294
+ /**
3295
+ * The **`searchParams`** read-only property of the access to the [MISSING: httpmethod('GET')] decoded query arguments contained in the URL.
3296
+ *
3297
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams)
3298
+ */
2669
3299
  get searchParams(): URLSearchParams;
2670
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash) */
3300
+ /**
3301
+ * The **`hash`** property of the URL interface is a string containing a `'#'` followed by the fragment identifier of the URL.
3302
+ *
3303
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash)
3304
+ */
2671
3305
  get hash(): string;
2672
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash) */
3306
+ /**
3307
+ * The **`hash`** property of the URL interface is a string containing a `'#'` followed by the fragment identifier of the URL.
3308
+ *
3309
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash)
3310
+ */
2673
3311
  set hash(value: string);
2674
3312
  /*function toString() { [native code] }*/
2675
3313
  toString(): string;
2676
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON) */
3314
+ /**
3315
+ * The **`toJSON()`** method of the URL interface returns a string containing a serialized version of the URL, although in practice it seems to have the same effect as ```js-nolint toJSON() ``` None.
3316
+ *
3317
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON)
3318
+ */
2677
3319
  toJSON(): string;
2678
3320
  }
2679
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) */
3321
+ /**
3322
+ * The **`URLSearchParams`** interface defines utility methods to work with the query string of a URL.
3323
+ *
3324
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams)
3325
+ */
2680
3326
  declare class URLSearchParams {
2681
3327
  constructor(
2682
3328
  init?:
@@ -2685,45 +3331,53 @@ declare class URLSearchParams {
2685
3331
  | Record<string, string>
2686
3332
  | [key: string, value: string][],
2687
3333
  );
2688
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size) */
3334
+ /**
3335
+ * The **`size`** read-only property of the URLSearchParams interface indicates the total number of search parameter entries.
3336
+ *
3337
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size)
3338
+ */
2689
3339
  get size(): number;
2690
3340
  /**
2691
- * Appends a specified key/value pair as a new search parameter.
3341
+ * The **`append()`** method of the URLSearchParams interface appends a specified key/value pair as a new search parameter.
2692
3342
  *
2693
3343
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/append)
2694
3344
  */
2695
3345
  append(name: string, value: string): void;
2696
3346
  /**
2697
- * Deletes the given search parameter, and its associated value, from the list of all search parameters.
3347
+ * The **`delete()`** method of the URLSearchParams interface deletes specified parameters and their associated value(s) from the list of all search parameters.
2698
3348
  *
2699
3349
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete)
2700
3350
  */
2701
3351
  delete(name: string): void;
2702
3352
  /**
2703
- * Returns the first value associated to the given search parameter.
3353
+ * The **`get()`** method of the URLSearchParams interface returns the first value associated to the given search parameter.
2704
3354
  *
2705
3355
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/get)
2706
3356
  */
2707
3357
  get(name: string): string | null;
2708
3358
  /**
2709
- * Returns all the values association with a given search parameter.
3359
+ * The **`getAll()`** method of the URLSearchParams interface returns all the values associated with a given search parameter as an array.
2710
3360
  *
2711
3361
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll)
2712
3362
  */
2713
3363
  getAll(name: string): string[];
2714
3364
  /**
2715
- * Returns a Boolean indicating if such a search parameter exists.
3365
+ * The **`has()`** method of the URLSearchParams interface returns a boolean value that indicates whether the specified parameter is in the search parameters.
2716
3366
  *
2717
3367
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)
2718
3368
  */
2719
3369
  has(name: string): boolean;
2720
3370
  /**
2721
- * Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.
3371
+ * The **`set()`** method of the URLSearchParams interface sets the value associated with a given search parameter to the given value.
2722
3372
  *
2723
3373
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set)
2724
3374
  */
2725
3375
  set(name: string, value: string): void;
2726
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort) */
3376
+ /**
3377
+ * The **`URLSearchParams.sort()`** method sorts all key/value pairs contained in this object in place and returns `undefined`.
3378
+ *
3379
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort)
3380
+ */
2727
3381
  sort(): void;
2728
3382
  /* Returns an array of key, value pairs for every entry in the search params. */
2729
3383
  entries(): IterableIterator<[key: string, value: string]>;
@@ -2740,7 +3394,7 @@ declare class URLSearchParams {
2740
3394
  ) => void,
2741
3395
  thisArg?: This,
2742
3396
  ): void;
2743
- /*function toString() { [native code] } Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */
3397
+ /*function toString() { [native code] }*/
2744
3398
  toString(): string;
2745
3399
  [Symbol.iterator](): IterableIterator<[key: string, value: string]>;
2746
3400
  }
@@ -2794,26 +3448,26 @@ interface URLPatternOptions {
2794
3448
  ignoreCase?: boolean;
2795
3449
  }
2796
3450
  /**
2797
- * A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute.
3451
+ * A `CloseEvent` is sent to clients using WebSockets when the connection is closed.
2798
3452
  *
2799
3453
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)
2800
3454
  */
2801
3455
  declare class CloseEvent extends Event {
2802
3456
  constructor(type: string, initializer?: CloseEventInit);
2803
3457
  /**
2804
- * Returns the WebSocket connection close code provided by the server.
3458
+ * The **`code`** read-only property of the CloseEvent interface returns a WebSocket connection close code indicating the reason the connection was closed.
2805
3459
  *
2806
3460
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)
2807
3461
  */
2808
3462
  readonly code: number;
2809
3463
  /**
2810
- * Returns the WebSocket connection close reason provided by the server.
3464
+ * The **`reason`** read-only property of the CloseEvent interface returns the WebSocket connection close reason the server gave for closing the connection; that is, a concise human-readable prose explanation for the closure.
2811
3465
  *
2812
3466
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)
2813
3467
  */
2814
3468
  readonly reason: string;
2815
3469
  /**
2816
- * Returns true if the connection closed cleanly; false otherwise.
3470
+ * The **`wasClean`** read-only property of the CloseEvent interface returns `true` if the connection closed cleanly.
2817
3471
  *
2818
3472
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean)
2819
3473
  */
@@ -2831,7 +3485,7 @@ type WebSocketEventMap = {
2831
3485
  error: ErrorEvent;
2832
3486
  };
2833
3487
  /**
2834
- * Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection.
3488
+ * The `WebSocket` object provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection.
2835
3489
  *
2836
3490
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
2837
3491
  */
@@ -2848,20 +3502,20 @@ declare var WebSocket: {
2848
3502
  readonly CLOSED: number;
2849
3503
  };
2850
3504
  /**
2851
- * Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection.
3505
+ * The `WebSocket` object provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection.
2852
3506
  *
2853
3507
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
2854
3508
  */
2855
3509
  interface WebSocket extends EventTarget<WebSocketEventMap> {
2856
3510
  accept(): void;
2857
3511
  /**
2858
- * Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView.
3512
+ * The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.
2859
3513
  *
2860
3514
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)
2861
3515
  */
2862
3516
  send(message: (ArrayBuffer | ArrayBufferView) | string): void;
2863
3517
  /**
2864
- * Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.
3518
+ * The **`WebSocket.close()`** method closes the already `CLOSED`, this method does nothing.
2865
3519
  *
2866
3520
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close)
2867
3521
  */
@@ -2869,25 +3523,25 @@ interface WebSocket extends EventTarget<WebSocketEventMap> {
2869
3523
  serializeAttachment(attachment: any): void;
2870
3524
  deserializeAttachment(): any | null;
2871
3525
  /**
2872
- * Returns the state of the WebSocket object's connection. It can have the values described below.
3526
+ * The **`WebSocket.readyState`** read-only property returns the current state of the WebSocket connection.
2873
3527
  *
2874
3528
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
2875
3529
  */
2876
3530
  readyState: number;
2877
3531
  /**
2878
- * Returns the URL that was used to establish the WebSocket connection.
3532
+ * The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
2879
3533
  *
2880
3534
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/url)
2881
3535
  */
2882
3536
  url: string | null;
2883
3537
  /**
2884
- * Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation.
3538
+ * The **`WebSocket.protocol`** read-only property returns the name of the sub-protocol the server selected; this will be one of the strings specified in the `protocols` parameter when creating the WebSocket object, or the empty string if no connection is established.
2885
3539
  *
2886
3540
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol)
2887
3541
  */
2888
3542
  protocol: string | null;
2889
3543
  /**
2890
- * Returns the extensions selected by the server, if any.
3544
+ * The **`WebSocket.extensions`** read-only property returns the extensions selected by the server.
2891
3545
  *
2892
3546
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/extensions)
2893
3547
  */
@@ -2956,29 +3610,33 @@ interface SocketInfo {
2956
3610
  remoteAddress?: string;
2957
3611
  localAddress?: string;
2958
3612
  }
2959
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource) */
3613
+ /**
3614
+ * The **`EventSource`** interface is web content's interface to server-sent events.
3615
+ *
3616
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource)
3617
+ */
2960
3618
  declare class EventSource extends EventTarget {
2961
3619
  constructor(url: string, init?: EventSourceEventSourceInit);
2962
3620
  /**
2963
- * Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.
3621
+ * The **`close()`** method of the EventSource interface closes the connection, if one is made, and sets the ```js-nolint close() ``` None.
2964
3622
  *
2965
3623
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close)
2966
3624
  */
2967
3625
  close(): void;
2968
3626
  /**
2969
- * Returns the URL providing the event stream.
3627
+ * The **`url`** read-only property of the URL of the source.
2970
3628
  *
2971
3629
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url)
2972
3630
  */
2973
3631
  get url(): string;
2974
3632
  /**
2975
- * Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.
3633
+ * The **`withCredentials`** read-only property of the the `EventSource` object was instantiated with CORS credentials set.
2976
3634
  *
2977
3635
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials)
2978
3636
  */
2979
3637
  get withCredentials(): boolean;
2980
3638
  /**
2981
- * Returns the state of this EventSource object's connection. It can have the values described below.
3639
+ * The **`readyState`** read-only property of the connection.
2982
3640
  *
2983
3641
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState)
2984
3642
  */
@@ -3011,22 +3669,22 @@ interface Container {
3011
3669
  destroy(error?: any): Promise<void>;
3012
3670
  signal(signo: number): void;
3013
3671
  getTcpPort(port: number): Fetcher;
3672
+ setInactivityTimeout(durationMs: number | bigint): Promise<void>;
3014
3673
  }
3015
3674
  interface ContainerStartupOptions {
3016
3675
  entrypoint?: string[];
3017
3676
  enableInternet: boolean;
3018
3677
  env?: Record<string, string>;
3678
+ hardTimeout?: number | bigint;
3019
3679
  }
3020
3680
  /**
3021
- * 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.
3681
+ * The **`MessagePort`** interface of the Channel Messaging API 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.
3022
3682
  *
3023
3683
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort)
3024
3684
  */
3025
3685
  interface MessagePort extends EventTarget {
3026
3686
  /**
3027
- * 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.
3028
- *
3029
- * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
3687
+ * The **`postMessage()`** method of the transfers ownership of objects to other browsing contexts.
3030
3688
  *
3031
3689
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage)
3032
3690
  */
@@ -3035,13 +3693,13 @@ interface MessagePort extends EventTarget {
3035
3693
  options?: any[] | MessagePortPostMessageOptions,
3036
3694
  ): void;
3037
3695
  /**
3038
- * Disconnects the port, so that it is no longer active.
3696
+ * The **`close()`** method of the MessagePort interface disconnects the port, so it is no longer active.
3039
3697
  *
3040
3698
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close)
3041
3699
  */
3042
3700
  close(): void;
3043
3701
  /**
3044
- * Begins dispatching messages received on the port.
3702
+ * The **`start()`** method of the MessagePort interface starts the sending of messages queued on the port.
3045
3703
  *
3046
3704
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/start)
3047
3705
  */
@@ -3112,6 +3770,7 @@ interface WorkerLoaderModule {
3112
3770
  data?: ArrayBuffer;
3113
3771
  json?: any;
3114
3772
  py?: string;
3773
+ wasm?: ArrayBuffer;
3115
3774
  }
3116
3775
  interface WorkerLoaderWorkerCode {
3117
3776
  compatibilityDate: string;
@@ -6896,6 +7555,10 @@ type AutoRagSearchRequest = {
6896
7555
  ranker?: string;
6897
7556
  score_threshold?: number;
6898
7557
  };
7558
+ reranking?: {
7559
+ enabled?: boolean;
7560
+ model?: string;
7561
+ };
6899
7562
  rewrite_query?: boolean;
6900
7563
  };
6901
7564
  type AutoRagAiSearchRequest = AutoRagSearchRequest & {
@@ -8840,6 +9503,11 @@ declare namespace CloudflareWorkersModule {
8840
9503
  constructor(ctx: ExecutionContext, env: Env);
8841
9504
  fetch?(request: Request): Response | Promise<Response>;
8842
9505
  tail?(events: TraceItem[]): void | Promise<void>;
9506
+ tailStream?(
9507
+ event: TailStream.TailEvent<TailStream.Onset>,
9508
+ ):
9509
+ | TailStream.TailEventHandlerType
9510
+ | Promise<TailStream.TailEventHandlerType>;
8843
9511
  trace?(traces: TraceItem[]): void | Promise<void>;
8844
9512
  scheduled?(controller: ScheduledController): void | Promise<void>;
8845
9513
  queue?(batch: MessageBatch<unknown>): void | Promise<void>;
@@ -9228,7 +9896,14 @@ interface VectorizeError {
9228
9896
  *
9229
9897
  * This list is expected to grow as support for more operations are released.
9230
9898
  */
9231
- type VectorizeVectorMetadataFilterOp = "$eq" | "$ne";
9899
+ type VectorizeVectorMetadataFilterOp =
9900
+ | "$eq"
9901
+ | "$ne"
9902
+ | "$lt"
9903
+ | "$lte"
9904
+ | "$gt"
9905
+ | "$gte";
9906
+ type VectorizeVectorMetadataFilterCollectionOp = "$in" | "$nin";
9232
9907
  /**
9233
9908
  * Filter criteria for vector metadata used to limit the retrieved query result set.
9234
9909
  */
@@ -9241,6 +9916,12 @@ type VectorizeVectorMetadataFilter = {
9241
9916
  VectorizeVectorMetadataValue,
9242
9917
  string[]
9243
9918
  > | null;
9919
+ }
9920
+ | {
9921
+ [Op in VectorizeVectorMetadataFilterCollectionOp]?: Exclude<
9922
+ VectorizeVectorMetadataValue,
9923
+ string[]
9924
+ >[];
9244
9925
  };
9245
9926
  };
9246
9927
  /**