@cloudflare/workers-types 4.20251011.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.
package/latest/index.d.ts CHANGED
@@ -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)
@@ -310,7 +395,7 @@ declare function removeEventListener<
310
395
  options?: EventTargetEventListenerOptions | boolean,
311
396
  ): void;
312
397
  /**
313
- * 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.
398
+ * The **`dispatchEvent()`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
314
399
  *
315
400
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
316
401
  */
@@ -392,6 +477,7 @@ interface TestController {}
392
477
  interface ExecutionContext<Props = unknown> {
393
478
  waitUntil(promise: Promise<any>): void;
394
479
  passThroughOnException(): void;
480
+ readonly exports: Cloudflare.Exports;
395
481
  readonly props: Props;
396
482
  }
397
483
  type ExportedHandlerFetchHandler<Env = unknown, CfHostMetadata = unknown> = (
@@ -446,13 +532,6 @@ interface ExportedHandler<
446
532
  interface StructuredSerializeOptions {
447
533
  transfer?: any[];
448
534
  }
449
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent) */
450
- declare abstract class PromiseRejectionEvent extends Event {
451
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise) */
452
- readonly promise: Promise<any>;
453
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason) */
454
- readonly reason: any;
455
- }
456
535
  declare abstract class Navigator {
457
536
  sendBeacon(
458
537
  url: string,
@@ -548,6 +627,7 @@ interface DurableObjectClass<
548
627
  > {}
549
628
  interface DurableObjectState<Props = unknown> {
550
629
  waitUntil(promise: Promise<any>): void;
630
+ readonly exports: Cloudflare.Exports;
551
631
  readonly props: Props;
552
632
  readonly id: DurableObjectId;
553
633
  readonly storage: DurableObjectStorage;
@@ -675,116 +755,120 @@ interface AnalyticsEngineDataPoint {
675
755
  blobs?: ((ArrayBuffer | string) | null)[];
676
756
  }
677
757
  /**
678
- * An event which takes place in the DOM.
758
+ * The **`Event`** interface represents an event which takes place on an `EventTarget`.
679
759
  *
680
760
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event)
681
761
  */
682
762
  declare class Event {
683
763
  constructor(type: string, init?: EventInit);
684
764
  /**
685
- * Returns the type of event, e.g. "click", "hashchange", or "submit".
765
+ * The **`type`** read-only property of the Event interface returns a string containing the event's type.
686
766
  *
687
767
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type)
688
768
  */
689
769
  get type(): string;
690
770
  /**
691
- * Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.
771
+ * The **`eventPhase`** read-only property of the being evaluated.
692
772
  *
693
773
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase)
694
774
  */
695
775
  get eventPhase(): number;
696
776
  /**
697
- * 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.
777
+ * The read-only **`composed`** property of the or not the event will propagate across the shadow DOM boundary into the standard DOM.
698
778
  *
699
779
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed)
700
780
  */
701
781
  get composed(): boolean;
702
782
  /**
703
- * 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.
783
+ * The **`bubbles`** read-only property of the Event interface indicates whether the event bubbles up through the DOM tree or not.
704
784
  *
705
785
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles)
706
786
  */
707
787
  get bubbles(): boolean;
708
788
  /**
709
- * 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.
789
+ * 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.
710
790
  *
711
791
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable)
712
792
  */
713
793
  get cancelable(): boolean;
714
794
  /**
715
- * Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
795
+ * 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.
716
796
  *
717
797
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented)
718
798
  */
719
799
  get defaultPrevented(): boolean;
720
800
  /**
801
+ * The Event property **`returnValue`** indicates whether the default action for this event has been prevented or not.
721
802
  * @deprecated
722
803
  *
723
804
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)
724
805
  */
725
806
  get returnValue(): boolean;
726
807
  /**
727
- * Returns the object whose event listener's callback is currently being invoked.
808
+ * The **`currentTarget`** read-only property of the Event interface identifies the element to which the event handler has been attached.
728
809
  *
729
810
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget)
730
811
  */
731
812
  get currentTarget(): EventTarget | undefined;
732
813
  /**
733
- * Returns the object to which event is dispatched (its target).
814
+ * The read-only **`target`** property of the dispatched.
734
815
  *
735
816
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)
736
817
  */
737
818
  get target(): EventTarget | undefined;
738
819
  /**
820
+ * The deprecated **`Event.srcElement`** is an alias for the Event.target property.
739
821
  * @deprecated
740
822
  *
741
823
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement)
742
824
  */
743
825
  get srcElement(): EventTarget | undefined;
744
826
  /**
745
- * Returns the event's timestamp as the number of milliseconds measured relative to the time origin.
827
+ * The **`timeStamp`** read-only property of the Event interface returns the time (in milliseconds) at which the event was created.
746
828
  *
747
829
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp)
748
830
  */
749
831
  get timeStamp(): number;
750
832
  /**
751
- * Returns true if event was dispatched by the user agent, and false otherwise.
833
+ * 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.
752
834
  *
753
835
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
754
836
  */
755
837
  get isTrusted(): boolean;
756
838
  /**
839
+ * The **`cancelBubble`** property of the Event interface is deprecated.
757
840
  * @deprecated
758
841
  *
759
842
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble)
760
843
  */
761
844
  get cancelBubble(): boolean;
762
845
  /**
846
+ * The **`cancelBubble`** property of the Event interface is deprecated.
763
847
  * @deprecated
764
848
  *
765
849
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble)
766
850
  */
767
851
  set cancelBubble(value: boolean);
768
852
  /**
769
- * 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.
853
+ * 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.
770
854
  *
771
855
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation)
772
856
  */
773
857
  stopImmediatePropagation(): void;
774
858
  /**
775
- * 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.
859
+ * 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.
776
860
  *
777
861
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault)
778
862
  */
779
863
  preventDefault(): void;
780
864
  /**
781
- * When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
865
+ * The **`stopPropagation()`** method of the Event interface prevents further propagation of the current event in the capturing and bubbling phases.
782
866
  *
783
867
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation)
784
868
  */
785
869
  stopPropagation(): void;
786
870
  /**
787
- * 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.
871
+ * 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.
788
872
  *
789
873
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath)
790
874
  */
@@ -809,7 +893,7 @@ type EventListenerOrEventListenerObject<EventType extends Event = Event> =
809
893
  | EventListener<EventType>
810
894
  | EventListenerObject<EventType>;
811
895
  /**
812
- * EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them.
896
+ * The **`EventTarget`** interface is implemented by objects that can receive events and may have listeners for them.
813
897
  *
814
898
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget)
815
899
  */
@@ -818,19 +902,7 @@ declare class EventTarget<
818
902
  > {
819
903
  constructor();
820
904
  /**
821
- * 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.
822
- *
823
- * 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.
824
- *
825
- * 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.
826
- *
827
- * 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.
828
- *
829
- * When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
830
- *
831
- * If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
832
- *
833
- * The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
905
+ * The **`addEventListener()`** method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
834
906
  *
835
907
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
836
908
  */
@@ -840,7 +912,7 @@ declare class EventTarget<
840
912
  options?: EventTargetAddEventListenerOptions | boolean,
841
913
  ): void;
842
914
  /**
843
- * Removes the event listener in target's event listener list with the same type, callback, and options.
915
+ * The **`removeEventListener()`** method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
844
916
  *
845
917
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
846
918
  */
@@ -850,7 +922,7 @@ declare class EventTarget<
850
922
  options?: EventTargetEventListenerOptions | boolean,
851
923
  ): void;
852
924
  /**
853
- * 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.
925
+ * The **`dispatchEvent()`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
854
926
  *
855
927
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
856
928
  */
@@ -869,50 +941,70 @@ interface EventTargetHandlerObject {
869
941
  handleEvent: (event: Event) => any | undefined;
870
942
  }
871
943
  /**
872
- * A controller object that allows you to abort one or more DOM requests as and when desired.
944
+ * The **`AbortController`** interface represents a controller object that allows you to abort one or more Web requests as and when desired.
873
945
  *
874
946
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController)
875
947
  */
876
948
  declare class AbortController {
877
949
  constructor();
878
950
  /**
879
- * Returns the AbortSignal object associated with this object.
951
+ * 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.
880
952
  *
881
953
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal)
882
954
  */
883
955
  get signal(): AbortSignal;
884
956
  /**
885
- * 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.
957
+ * The **`abort()`** method of the AbortController interface aborts an asynchronous operation before it has completed.
886
958
  *
887
959
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort)
888
960
  */
889
961
  abort(reason?: any): void;
890
962
  }
891
963
  /**
892
- * 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.
964
+ * 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.
893
965
  *
894
966
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal)
895
967
  */
896
968
  declare abstract class AbortSignal extends EventTarget {
897
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */
969
+ /**
970
+ * The **`AbortSignal.abort()`** static method returns an AbortSignal that is already set as aborted (and which does not trigger an AbortSignal/abort_event event).
971
+ *
972
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static)
973
+ */
898
974
  static abort(reason?: any): AbortSignal;
899
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */
975
+ /**
976
+ * The **`AbortSignal.timeout()`** static method returns an AbortSignal that will automatically abort after a specified time.
977
+ *
978
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static)
979
+ */
900
980
  static timeout(delay: number): AbortSignal;
901
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */
981
+ /**
982
+ * The **`AbortSignal.any()`** static method takes an iterable of abort signals and returns an AbortSignal.
983
+ *
984
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static)
985
+ */
902
986
  static any(signals: AbortSignal[]): AbortSignal;
903
987
  /**
904
- * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
988
+ * 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`).
905
989
  *
906
990
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted)
907
991
  */
908
992
  get aborted(): boolean;
909
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) */
993
+ /**
994
+ * The **`reason`** read-only property returns a JavaScript value that indicates the abort reason.
995
+ *
996
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason)
997
+ */
910
998
  get reason(): any;
911
999
  /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */
912
1000
  get onabort(): any | null;
913
1001
  /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */
914
1002
  set onabort(value: any | null);
915
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) */
1003
+ /**
1004
+ * The **`throwIfAborted()`** method throws the signal's abort AbortSignal.reason if the signal has been aborted; otherwise it does nothing.
1005
+ *
1006
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted)
1007
+ */
916
1008
  throwIfAborted(): void;
917
1009
  }
918
1010
  interface Scheduler {
@@ -922,19 +1014,27 @@ interface SchedulerWaitOptions {
922
1014
  signal?: AbortSignal;
923
1015
  }
924
1016
  /**
925
- * 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.
1017
+ * The **`ExtendableEvent`** interface extends the lifetime of the `install` and `activate` events dispatched on the global scope as part of the service worker lifecycle.
926
1018
  *
927
1019
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent)
928
1020
  */
929
1021
  declare abstract class ExtendableEvent extends Event {
930
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent/waitUntil) */
1022
+ /**
1023
+ * The **`ExtendableEvent.waitUntil()`** method tells the event dispatcher that work is ongoing.
1024
+ *
1025
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent/waitUntil)
1026
+ */
931
1027
  waitUntil(promise: Promise<any>): void;
932
1028
  }
933
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */
1029
+ /**
1030
+ * The **`CustomEvent`** interface represents events initialized by an application for any purpose.
1031
+ *
1032
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)
1033
+ */
934
1034
  declare class CustomEvent<T = any> extends Event {
935
1035
  constructor(type: string, init?: CustomEventCustomEventInit);
936
1036
  /**
937
- * Returns any custom data event was created with. Typically used for synthetic events.
1037
+ * The read-only **`detail`** property of the CustomEvent interface returns any data passed when initializing the event.
938
1038
  *
939
1039
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)
940
1040
  */
@@ -947,7 +1047,7 @@ interface CustomEventCustomEventInit {
947
1047
  detail?: any;
948
1048
  }
949
1049
  /**
950
- * 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.
1050
+ * 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.
951
1051
  *
952
1052
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob)
953
1053
  */
@@ -956,26 +1056,54 @@ declare class Blob {
956
1056
  type?: ((ArrayBuffer | ArrayBufferView) | string | Blob)[],
957
1057
  options?: BlobOptions,
958
1058
  );
959
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
1059
+ /**
1060
+ * The **`size`** read-only property of the Blob interface returns the size of the Blob or File in bytes.
1061
+ *
1062
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size)
1063
+ */
960
1064
  get size(): number;
961
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */
1065
+ /**
1066
+ * The **`type`** read-only property of the Blob interface returns the MIME type of the file.
1067
+ *
1068
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type)
1069
+ */
962
1070
  get type(): string;
963
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */
1071
+ /**
1072
+ * 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.
1073
+ *
1074
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice)
1075
+ */
964
1076
  slice(start?: number, end?: number, type?: string): Blob;
965
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */
1077
+ /**
1078
+ * 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.
1079
+ *
1080
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer)
1081
+ */
966
1082
  arrayBuffer(): Promise<ArrayBuffer>;
967
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/bytes) */
1083
+ /**
1084
+ * 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.
1085
+ *
1086
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/bytes)
1087
+ */
968
1088
  bytes(): Promise<Uint8Array>;
969
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
1089
+ /**
1090
+ * The **`text()`** method of the string containing the contents of the blob, interpreted as UTF-8.
1091
+ *
1092
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text)
1093
+ */
970
1094
  text(): Promise<string>;
971
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */
1095
+ /**
1096
+ * The **`stream()`** method of the Blob interface returns a ReadableStream which upon reading returns the data contained within the `Blob`.
1097
+ *
1098
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream)
1099
+ */
972
1100
  stream(): ReadableStream;
973
1101
  }
974
1102
  interface BlobOptions {
975
1103
  type?: string;
976
1104
  }
977
1105
  /**
978
- * Provides information about files and allows JavaScript in a web page to access their content.
1106
+ * The **`File`** interface provides information about files and allows JavaScript in a web page to access their content.
979
1107
  *
980
1108
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File)
981
1109
  */
@@ -985,9 +1113,17 @@ declare class File extends Blob {
985
1113
  name: string,
986
1114
  options?: FileOptions,
987
1115
  );
988
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */
1116
+ /**
1117
+ * The **`name`** read-only property of the File interface returns the name of the file represented by a File object.
1118
+ *
1119
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name)
1120
+ */
989
1121
  get name(): string;
990
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */
1122
+ /**
1123
+ * 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).
1124
+ *
1125
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified)
1126
+ */
991
1127
  get lastModified(): number;
992
1128
  }
993
1129
  interface FileOptions {
@@ -1000,7 +1136,11 @@ interface FileOptions {
1000
1136
  * [Cloudflare Docs Reference](https://developers.cloudflare.com/workers/runtime-apis/cache/)
1001
1137
  */
1002
1138
  declare abstract class CacheStorage {
1003
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) */
1139
+ /**
1140
+ * The **`open()`** method of the the Cache object matching the `cacheName`.
1141
+ *
1142
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open)
1143
+ */
1004
1144
  open(cacheName: string): Promise<Cache>;
1005
1145
  readonly default: Cache;
1006
1146
  }
@@ -1036,12 +1176,17 @@ interface CacheQueryOptions {
1036
1176
  */
1037
1177
  declare abstract class Crypto {
1038
1178
  /**
1179
+ * The **`Crypto.subtle`** read-only property returns a cryptographic operations.
1039
1180
  * Available only in secure contexts.
1040
1181
  *
1041
1182
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle)
1042
1183
  */
1043
1184
  get subtle(): SubtleCrypto;
1044
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */
1185
+ /**
1186
+ * The **`Crypto.getRandomValues()`** method lets you get cryptographically strong random values.
1187
+ *
1188
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues)
1189
+ */
1045
1190
  getRandomValues<
1046
1191
  T extends
1047
1192
  | Int8Array
@@ -1054,6 +1199,7 @@ declare abstract class Crypto {
1054
1199
  | BigUint64Array,
1055
1200
  >(buffer: T): T;
1056
1201
  /**
1202
+ * The **`randomUUID()`** method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator.
1057
1203
  * Available only in secure contexts.
1058
1204
  *
1059
1205
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID)
@@ -1062,49 +1208,77 @@ declare abstract class Crypto {
1062
1208
  DigestStream: typeof DigestStream;
1063
1209
  }
1064
1210
  /**
1065
- * 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).
1211
+ * The **`SubtleCrypto`** interface of the Web Crypto API provides a number of low-level cryptographic functions.
1066
1212
  * Available only in secure contexts.
1067
1213
  *
1068
1214
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto)
1069
1215
  */
1070
1216
  declare abstract class SubtleCrypto {
1071
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt) */
1217
+ /**
1218
+ * The **`encrypt()`** method of the SubtleCrypto interface encrypts data.
1219
+ *
1220
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt)
1221
+ */
1072
1222
  encrypt(
1073
1223
  algorithm: string | SubtleCryptoEncryptAlgorithm,
1074
1224
  key: CryptoKey,
1075
1225
  plainText: ArrayBuffer | ArrayBufferView,
1076
1226
  ): Promise<ArrayBuffer>;
1077
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt) */
1227
+ /**
1228
+ * The **`decrypt()`** method of the SubtleCrypto interface decrypts some encrypted data.
1229
+ *
1230
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt)
1231
+ */
1078
1232
  decrypt(
1079
1233
  algorithm: string | SubtleCryptoEncryptAlgorithm,
1080
1234
  key: CryptoKey,
1081
1235
  cipherText: ArrayBuffer | ArrayBufferView,
1082
1236
  ): Promise<ArrayBuffer>;
1083
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign) */
1237
+ /**
1238
+ * The **`sign()`** method of the SubtleCrypto interface generates a digital signature.
1239
+ *
1240
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign)
1241
+ */
1084
1242
  sign(
1085
1243
  algorithm: string | SubtleCryptoSignAlgorithm,
1086
1244
  key: CryptoKey,
1087
1245
  data: ArrayBuffer | ArrayBufferView,
1088
1246
  ): Promise<ArrayBuffer>;
1089
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify) */
1247
+ /**
1248
+ * The **`verify()`** method of the SubtleCrypto interface verifies a digital signature.
1249
+ *
1250
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify)
1251
+ */
1090
1252
  verify(
1091
1253
  algorithm: string | SubtleCryptoSignAlgorithm,
1092
1254
  key: CryptoKey,
1093
1255
  signature: ArrayBuffer | ArrayBufferView,
1094
1256
  data: ArrayBuffer | ArrayBufferView,
1095
1257
  ): Promise<boolean>;
1096
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest) */
1258
+ /**
1259
+ * The **`digest()`** method of the SubtleCrypto interface generates a _digest_ of the given data, using the specified hash function.
1260
+ *
1261
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest)
1262
+ */
1097
1263
  digest(
1098
1264
  algorithm: string | SubtleCryptoHashAlgorithm,
1099
1265
  data: ArrayBuffer | ArrayBufferView,
1100
1266
  ): Promise<ArrayBuffer>;
1101
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
1267
+ /**
1268
+ * The **`generateKey()`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
1269
+ *
1270
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
1271
+ */
1102
1272
  generateKey(
1103
1273
  algorithm: string | SubtleCryptoGenerateKeyAlgorithm,
1104
1274
  extractable: boolean,
1105
1275
  keyUsages: string[],
1106
1276
  ): Promise<CryptoKey | CryptoKeyPair>;
1107
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */
1277
+ /**
1278
+ * The **`deriveKey()`** method of the SubtleCrypto interface can be used to derive a secret key from a master key.
1279
+ *
1280
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey)
1281
+ */
1108
1282
  deriveKey(
1109
1283
  algorithm: string | SubtleCryptoDeriveKeyAlgorithm,
1110
1284
  baseKey: CryptoKey,
@@ -1112,13 +1286,21 @@ declare abstract class SubtleCrypto {
1112
1286
  extractable: boolean,
1113
1287
  keyUsages: string[],
1114
1288
  ): Promise<CryptoKey>;
1115
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits) */
1289
+ /**
1290
+ * The **`deriveBits()`** method of the key.
1291
+ *
1292
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits)
1293
+ */
1116
1294
  deriveBits(
1117
1295
  algorithm: string | SubtleCryptoDeriveKeyAlgorithm,
1118
1296
  baseKey: CryptoKey,
1119
1297
  length?: number | null,
1120
1298
  ): Promise<ArrayBuffer>;
1121
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */
1299
+ /**
1300
+ * 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.
1301
+ *
1302
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey)
1303
+ */
1122
1304
  importKey(
1123
1305
  format: string,
1124
1306
  keyData: (ArrayBuffer | ArrayBufferView) | JsonWebKey,
@@ -1126,16 +1308,28 @@ declare abstract class SubtleCrypto {
1126
1308
  extractable: boolean,
1127
1309
  keyUsages: string[],
1128
1310
  ): Promise<CryptoKey>;
1129
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey) */
1311
+ /**
1312
+ * 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.
1313
+ *
1314
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey)
1315
+ */
1130
1316
  exportKey(format: string, key: CryptoKey): Promise<ArrayBuffer | JsonWebKey>;
1131
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey) */
1317
+ /**
1318
+ * The **`wrapKey()`** method of the SubtleCrypto interface 'wraps' a key.
1319
+ *
1320
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey)
1321
+ */
1132
1322
  wrapKey(
1133
1323
  format: string,
1134
1324
  key: CryptoKey,
1135
1325
  wrappingKey: CryptoKey,
1136
1326
  wrapAlgorithm: string | SubtleCryptoEncryptAlgorithm,
1137
1327
  ): Promise<ArrayBuffer>;
1138
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */
1328
+ /**
1329
+ * The **`unwrapKey()`** method of the SubtleCrypto interface 'unwraps' a key.
1330
+ *
1331
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)
1332
+ */
1139
1333
  unwrapKey(
1140
1334
  format: string,
1141
1335
  wrappedKey: ArrayBuffer | ArrayBufferView,
@@ -1151,17 +1345,29 @@ declare abstract class SubtleCrypto {
1151
1345
  ): boolean;
1152
1346
  }
1153
1347
  /**
1154
- * The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.
1348
+ * 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.
1155
1349
  * Available only in secure contexts.
1156
1350
  *
1157
1351
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey)
1158
1352
  */
1159
1353
  declare abstract class CryptoKey {
1160
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type) */
1354
+ /**
1355
+ * The read-only **`type`** property of the CryptoKey interface indicates which kind of key is represented by the object.
1356
+ *
1357
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type)
1358
+ */
1161
1359
  readonly type: string;
1162
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable) */
1360
+ /**
1361
+ * The read-only **`extractable`** property of the CryptoKey interface indicates whether or not the key may be extracted using `SubtleCrypto.exportKey()` or `SubtleCrypto.wrapKey()`.
1362
+ *
1363
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable)
1364
+ */
1163
1365
  readonly extractable: boolean;
1164
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm) */
1366
+ /**
1367
+ * 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.
1368
+ *
1369
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm)
1370
+ */
1165
1371
  readonly algorithm:
1166
1372
  | CryptoKeyKeyAlgorithm
1167
1373
  | CryptoKeyAesKeyAlgorithm
@@ -1169,7 +1375,11 @@ declare abstract class CryptoKey {
1169
1375
  | CryptoKeyRsaKeyAlgorithm
1170
1376
  | CryptoKeyEllipticKeyAlgorithm
1171
1377
  | CryptoKeyArbitraryKeyAlgorithm;
1172
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) */
1378
+ /**
1379
+ * The read-only **`usages`** property of the CryptoKey interface indicates what can be done with the key.
1380
+ *
1381
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages)
1382
+ */
1173
1383
  readonly usages: string[];
1174
1384
  }
1175
1385
  interface CryptoKeyPair {
@@ -1278,24 +1488,14 @@ declare class DigestStream extends WritableStream<
1278
1488
  get bytesWritten(): number | bigint;
1279
1489
  }
1280
1490
  /**
1281
- * 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.
1491
+ * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, `KOI8-R`, `GBK`, etc.
1282
1492
  *
1283
1493
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)
1284
1494
  */
1285
1495
  declare class TextDecoder {
1286
1496
  constructor(label?: string, options?: TextDecoderConstructorOptions);
1287
1497
  /**
1288
- * 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.
1289
- *
1290
- * ```
1291
- * var string = "", decoder = new TextDecoder(encoding), buffer;
1292
- * while(buffer = next_chunk()) {
1293
- * string += decoder.decode(buffer, {stream:true});
1294
- * }
1295
- * string += decoder.decode(); // end-of-queue
1296
- * ```
1297
- *
1298
- * If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
1498
+ * The **`TextDecoder.decode()`** method returns a string containing text decoded from the buffer passed as a parameter.
1299
1499
  *
1300
1500
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode)
1301
1501
  */
@@ -1308,27 +1508,24 @@ declare class TextDecoder {
1308
1508
  get ignoreBOM(): boolean;
1309
1509
  }
1310
1510
  /**
1311
- * 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.
1511
+ * The **`TextEncoder`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes.
1312
1512
  *
1313
1513
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
1314
1514
  */
1315
1515
  declare class TextEncoder {
1316
1516
  constructor();
1317
1517
  /**
1318
- * Returns the result of running UTF-8's encoder.
1518
+ * 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.
1319
1519
  *
1320
1520
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
1321
1521
  */
1322
1522
  encode(input?: string): Uint8Array;
1323
1523
  /**
1324
- * 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.
1524
+ * 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.
1325
1525
  *
1326
1526
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)
1327
1527
  */
1328
- encodeInto(
1329
- input: string,
1330
- buffer: ArrayBuffer | ArrayBufferView,
1331
- ): TextEncoderEncodeIntoResult;
1528
+ encodeInto(input: string, buffer: Uint8Array): TextEncoderEncodeIntoResult;
1332
1529
  get encoding(): string;
1333
1530
  }
1334
1531
  interface TextDecoderConstructorOptions {
@@ -1343,21 +1540,41 @@ interface TextEncoderEncodeIntoResult {
1343
1540
  written: number;
1344
1541
  }
1345
1542
  /**
1346
- * Events providing information related to errors in scripts or in files.
1543
+ * The **`ErrorEvent`** interface represents events providing information related to errors in scripts or in files.
1347
1544
  *
1348
1545
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent)
1349
1546
  */
1350
1547
  declare class ErrorEvent extends Event {
1351
1548
  constructor(type: string, init?: ErrorEventErrorEventInit);
1352
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */
1549
+ /**
1550
+ * The **`filename`** read-only property of the ErrorEvent interface returns a string containing the name of the script file in which the error occurred.
1551
+ *
1552
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename)
1553
+ */
1353
1554
  get filename(): string;
1354
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */
1555
+ /**
1556
+ * The **`message`** read-only property of the ErrorEvent interface returns a string containing a human-readable error message describing the problem.
1557
+ *
1558
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message)
1559
+ */
1355
1560
  get message(): string;
1356
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */
1561
+ /**
1562
+ * 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.
1563
+ *
1564
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno)
1565
+ */
1357
1566
  get lineno(): number;
1358
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */
1567
+ /**
1568
+ * 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.
1569
+ *
1570
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno)
1571
+ */
1359
1572
  get colno(): number;
1360
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */
1573
+ /**
1574
+ * 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.
1575
+ *
1576
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error)
1577
+ */
1361
1578
  get error(): any;
1362
1579
  }
1363
1580
  interface ErrorEventErrorEventInit {
@@ -1368,38 +1585,38 @@ interface ErrorEventErrorEventInit {
1368
1585
  error?: any;
1369
1586
  }
1370
1587
  /**
1371
- * A message received by a target object.
1588
+ * The **`MessageEvent`** interface represents a message received by a target object.
1372
1589
  *
1373
1590
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent)
1374
1591
  */
1375
1592
  declare class MessageEvent extends Event {
1376
1593
  constructor(type: string, initializer: MessageEventInit);
1377
1594
  /**
1378
- * Returns the data of the message.
1595
+ * 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.
1379
1596
  *
1380
1597
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data)
1381
1598
  */
1382
1599
  readonly data: any;
1383
1600
  /**
1384
- * Returns the origin of the message, for server-sent events and cross-document messaging.
1601
+ * The **`origin`** read-only property of the origin of the message emitter.
1385
1602
  *
1386
1603
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin)
1387
1604
  */
1388
1605
  readonly origin: string | null;
1389
1606
  /**
1390
- * Returns the last event ID string, for server-sent events.
1607
+ * The **`lastEventId`** read-only property of the unique ID for the event.
1391
1608
  *
1392
1609
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId)
1393
1610
  */
1394
1611
  readonly lastEventId: string;
1395
1612
  /**
1396
- * Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects.
1613
+ * The **`source`** read-only property of the a WindowProxy, MessagePort, or a `MessageEventSource` (which can be a WindowProxy, message emitter.
1397
1614
  *
1398
1615
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source)
1399
1616
  */
1400
1617
  readonly source: MessagePort | null;
1401
1618
  /**
1402
- * Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.
1619
+ * The **`ports`** read-only property of the containing all MessagePort objects sent with the message, in order.
1403
1620
  *
1404
1621
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports)
1405
1622
  */
@@ -1409,27 +1626,78 @@ interface MessageEventInit {
1409
1626
  data: ArrayBuffer | string;
1410
1627
  }
1411
1628
  /**
1412
- * 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".
1629
+ * The **`PromiseRejectionEvent`** interface represents events which are sent to the global script context when JavaScript Promises are rejected.
1630
+ *
1631
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent)
1632
+ */
1633
+ declare abstract class PromiseRejectionEvent extends Event {
1634
+ /**
1635
+ * The PromiseRejectionEvent interface's **`promise`** read-only property indicates the JavaScript rejected.
1636
+ *
1637
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise)
1638
+ */
1639
+ readonly promise: Promise<any>;
1640
+ /**
1641
+ * The PromiseRejectionEvent **`reason`** read-only property is any JavaScript value or Object which provides the reason passed into Promise.reject().
1642
+ *
1643
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason)
1644
+ */
1645
+ readonly reason: any;
1646
+ }
1647
+ /**
1648
+ * 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.
1413
1649
  *
1414
1650
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData)
1415
1651
  */
1416
1652
  declare class FormData {
1417
1653
  constructor();
1418
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) */
1654
+ /**
1655
+ * 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.
1656
+ *
1657
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append)
1658
+ */
1419
1659
  append(name: string, value: string): void;
1420
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) */
1660
+ /**
1661
+ * 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.
1662
+ *
1663
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append)
1664
+ */
1421
1665
  append(name: string, value: Blob, filename?: string): void;
1422
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete) */
1666
+ /**
1667
+ * The **`delete()`** method of the FormData interface deletes a key and its value(s) from a `FormData` object.
1668
+ *
1669
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete)
1670
+ */
1423
1671
  delete(name: string): void;
1424
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get) */
1672
+ /**
1673
+ * The **`get()`** method of the FormData interface returns the first value associated with a given key from within a `FormData` object.
1674
+ *
1675
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get)
1676
+ */
1425
1677
  get(name: string): (File | string) | null;
1426
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll) */
1678
+ /**
1679
+ * The **`getAll()`** method of the FormData interface returns all the values associated with a given key from within a `FormData` object.
1680
+ *
1681
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll)
1682
+ */
1427
1683
  getAll(name: string): (File | string)[];
1428
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has) */
1684
+ /**
1685
+ * The **`has()`** method of the FormData interface returns whether a `FormData` object contains a certain key.
1686
+ *
1687
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has)
1688
+ */
1429
1689
  has(name: string): boolean;
1430
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) */
1690
+ /**
1691
+ * 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.
1692
+ *
1693
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set)
1694
+ */
1431
1695
  set(name: string, value: string): void;
1432
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) */
1696
+ /**
1697
+ * 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.
1698
+ *
1699
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set)
1700
+ */
1433
1701
  set(name: string, value: Blob, filename?: string): void;
1434
1702
  /* Returns an array of key, value pairs for every entry in the list. */
1435
1703
  entries(): IterableIterator<[key: string, value: File | string]>;
@@ -1555,14 +1823,22 @@ interface DocumentEnd {
1555
1823
  append(content: string, options?: ContentOptions): DocumentEnd;
1556
1824
  }
1557
1825
  /**
1558
- * 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.
1826
+ * This is the event type for `fetch` events dispatched on the ServiceWorkerGlobalScope.
1559
1827
  *
1560
1828
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent)
1561
1829
  */
1562
1830
  declare abstract class FetchEvent extends ExtendableEvent {
1563
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/request) */
1831
+ /**
1832
+ * The **`request`** read-only property of the the event handler.
1833
+ *
1834
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/request)
1835
+ */
1564
1836
  readonly request: Request;
1565
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/respondWith) */
1837
+ /**
1838
+ * The **`respondWith()`** method of allows you to provide a promise for a Response yourself.
1839
+ *
1840
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/respondWith)
1841
+ */
1566
1842
  respondWith(promise: Response | Promise<Response>): void;
1567
1843
  passThroughOnException(): void;
1568
1844
  }
@@ -1571,24 +1847,48 @@ type HeadersInit =
1571
1847
  | Iterable<Iterable<string>>
1572
1848
  | Record<string, string>;
1573
1849
  /**
1574
- * 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.
1850
+ * The **`Headers`** interface of the Fetch API allows you to perform various actions on HTTP request and response headers.
1575
1851
  *
1576
1852
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers)
1577
1853
  */
1578
1854
  declare class Headers {
1579
1855
  constructor(init?: HeadersInit);
1580
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) */
1856
+ /**
1857
+ * 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.
1858
+ *
1859
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get)
1860
+ */
1581
1861
  get(name: string): string | null;
1582
1862
  getAll(name: string): string[];
1583
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie) */
1863
+ /**
1864
+ * The **`getSetCookie()`** method of the Headers interface returns an array containing the values of all Set-Cookie headers associated with a response.
1865
+ *
1866
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie)
1867
+ */
1584
1868
  getSetCookie(): string[];
1585
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has) */
1869
+ /**
1870
+ * The **`has()`** method of the Headers interface returns a boolean stating whether a `Headers` object contains a certain header.
1871
+ *
1872
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has)
1873
+ */
1586
1874
  has(name: string): boolean;
1587
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set) */
1875
+ /**
1876
+ * 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.
1877
+ *
1878
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set)
1879
+ */
1588
1880
  set(name: string, value: string): void;
1589
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append) */
1881
+ /**
1882
+ * 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.
1883
+ *
1884
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append)
1885
+ */
1590
1886
  append(name: string, value: string): void;
1591
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete) */
1887
+ /**
1888
+ * The **`delete()`** method of the Headers interface deletes a header from the current `Headers` object.
1889
+ *
1890
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete)
1891
+ */
1592
1892
  delete(name: string): void;
1593
1893
  forEach<This = unknown>(
1594
1894
  callback: (this: This, value: string, key: string, parent: Headers) => void,
@@ -1629,7 +1929,7 @@ declare abstract class Body {
1629
1929
  blob(): Promise<Blob>;
1630
1930
  }
1631
1931
  /**
1632
- * This Fetch API interface represents the response to a request.
1932
+ * The **`Response`** interface of the Fetch API represents the response to a request.
1633
1933
  *
1634
1934
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)
1635
1935
  */
@@ -1641,28 +1941,60 @@ declare var Response: {
1641
1941
  json(any: any, maybeInit?: ResponseInit | Response): Response;
1642
1942
  };
1643
1943
  /**
1644
- * This Fetch API interface represents the response to a request.
1944
+ * The **`Response`** interface of the Fetch API represents the response to a request.
1645
1945
  *
1646
1946
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)
1647
1947
  */
1648
1948
  interface Response extends Body {
1649
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone) */
1949
+ /**
1950
+ * The **`clone()`** method of the Response interface creates a clone of a response object, identical in every way, but stored in a different variable.
1951
+ *
1952
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone)
1953
+ */
1650
1954
  clone(): Response;
1651
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status) */
1955
+ /**
1956
+ * The **`status`** read-only property of the Response interface contains the HTTP status codes of the response.
1957
+ *
1958
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status)
1959
+ */
1652
1960
  status: number;
1653
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText) */
1961
+ /**
1962
+ * The **`statusText`** read-only property of the Response interface contains the status message corresponding to the HTTP status code in Response.status.
1963
+ *
1964
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText)
1965
+ */
1654
1966
  statusText: string;
1655
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers) */
1967
+ /**
1968
+ * The **`headers`** read-only property of the with the response.
1969
+ *
1970
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers)
1971
+ */
1656
1972
  headers: Headers;
1657
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok) */
1973
+ /**
1974
+ * 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.
1975
+ *
1976
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok)
1977
+ */
1658
1978
  ok: boolean;
1659
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected) */
1979
+ /**
1980
+ * 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.
1981
+ *
1982
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected)
1983
+ */
1660
1984
  redirected: boolean;
1661
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url) */
1985
+ /**
1986
+ * The **`url`** read-only property of the Response interface contains the URL of the response.
1987
+ *
1988
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url)
1989
+ */
1662
1990
  url: string;
1663
1991
  webSocket: WebSocket | null;
1664
1992
  cf: any | undefined;
1665
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type) */
1993
+ /**
1994
+ * The **`type`** read-only property of the Response interface contains the type of the response.
1995
+ *
1996
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type)
1997
+ */
1666
1998
  type: "default" | "error";
1667
1999
  }
1668
2000
  interface ResponseInit {
@@ -1677,7 +2009,7 @@ type RequestInfo<CfHostMetadata = unknown, Cf = CfProperties<CfHostMetadata>> =
1677
2009
  | Request<CfHostMetadata, Cf>
1678
2010
  | string;
1679
2011
  /**
1680
- * This Fetch API interface represents a resource request.
2012
+ * The **`Request`** interface of the Fetch API represents a resource request.
1681
2013
  *
1682
2014
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request)
1683
2015
  */
@@ -1689,60 +2021,64 @@ declare var Request: {
1689
2021
  ): Request<CfHostMetadata, Cf>;
1690
2022
  };
1691
2023
  /**
1692
- * This Fetch API interface represents a resource request.
2024
+ * The **`Request`** interface of the Fetch API represents a resource request.
1693
2025
  *
1694
2026
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request)
1695
2027
  */
1696
2028
  interface Request<CfHostMetadata = unknown, Cf = CfProperties<CfHostMetadata>>
1697
2029
  extends Body {
1698
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone) */
2030
+ /**
2031
+ * The **`clone()`** method of the Request interface creates a copy of the current `Request` object.
2032
+ *
2033
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone)
2034
+ */
1699
2035
  clone(): Request<CfHostMetadata, Cf>;
1700
2036
  /**
1701
- * Returns request's HTTP method, which is "GET" by default.
2037
+ * The **`method`** read-only property of the `POST`, etc.) A String indicating the method of the request.
1702
2038
  *
1703
2039
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method)
1704
2040
  */
1705
2041
  method: string;
1706
2042
  /**
1707
- * Returns the URL of request as a string.
2043
+ * The **`url`** read-only property of the Request interface contains the URL of the request.
1708
2044
  *
1709
2045
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/url)
1710
2046
  */
1711
2047
  url: string;
1712
2048
  /**
1713
- * 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.
2049
+ * The **`headers`** read-only property of the with the request.
1714
2050
  *
1715
2051
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/headers)
1716
2052
  */
1717
2053
  headers: Headers;
1718
2054
  /**
1719
- * 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.
2055
+ * The **`redirect`** read-only property of the Request interface contains the mode for how redirects are handled.
1720
2056
  *
1721
2057
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/redirect)
1722
2058
  */
1723
2059
  redirect: string;
1724
2060
  fetcher: Fetcher | null;
1725
2061
  /**
1726
- * Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler.
2062
+ * The read-only **`signal`** property of the Request interface returns the AbortSignal associated with the request.
1727
2063
  *
1728
2064
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/signal)
1729
2065
  */
1730
2066
  signal: AbortSignal;
1731
2067
  cf: Cf | undefined;
1732
2068
  /**
1733
- * 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]
2069
+ * The **`integrity`** read-only property of the Request interface contains the subresource integrity value of the request.
1734
2070
  *
1735
2071
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity)
1736
2072
  */
1737
2073
  integrity: string;
1738
2074
  /**
1739
- * Returns a boolean indicating whether or not request can outlive the global in which it was created.
2075
+ * 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.
1740
2076
  *
1741
2077
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive)
1742
2078
  */
1743
2079
  keepalive: boolean;
1744
2080
  /**
1745
- * Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching.
2081
+ * The **`cache`** read-only property of the Request interface contains the cache mode of the request.
1746
2082
  *
1747
2083
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)
1748
2084
  */
@@ -2249,30 +2585,58 @@ type ReadableStreamReadResult<R = any> =
2249
2585
  value?: undefined;
2250
2586
  };
2251
2587
  /**
2252
- * 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.
2588
+ * The `ReadableStream` interface of the Streams API represents a readable stream of byte data.
2253
2589
  *
2254
2590
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)
2255
2591
  */
2256
2592
  interface ReadableStream<R = any> {
2257
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked) */
2593
+ /**
2594
+ * The **`locked`** read-only property of the ReadableStream interface returns whether or not the readable stream is locked to a reader.
2595
+ *
2596
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked)
2597
+ */
2258
2598
  get locked(): boolean;
2259
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel) */
2599
+ /**
2600
+ * The **`cancel()`** method of the ReadableStream interface returns a Promise that resolves when the stream is canceled.
2601
+ *
2602
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel)
2603
+ */
2260
2604
  cancel(reason?: any): Promise<void>;
2261
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) */
2605
+ /**
2606
+ * The **`getReader()`** method of the ReadableStream interface creates a reader and locks the stream to it.
2607
+ *
2608
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader)
2609
+ */
2262
2610
  getReader(): ReadableStreamDefaultReader<R>;
2263
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) */
2611
+ /**
2612
+ * The **`getReader()`** method of the ReadableStream interface creates a reader and locks the stream to it.
2613
+ *
2614
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader)
2615
+ */
2264
2616
  getReader(options: ReadableStreamGetReaderOptions): ReadableStreamBYOBReader;
2265
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough) */
2617
+ /**
2618
+ * 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.
2619
+ *
2620
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough)
2621
+ */
2266
2622
  pipeThrough<T>(
2267
2623
  transform: ReadableWritablePair<T, R>,
2268
2624
  options?: StreamPipeOptions,
2269
2625
  ): ReadableStream<T>;
2270
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo) */
2626
+ /**
2627
+ * 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.
2628
+ *
2629
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo)
2630
+ */
2271
2631
  pipeTo(
2272
2632
  destination: WritableStream<R>,
2273
2633
  options?: StreamPipeOptions,
2274
2634
  ): Promise<void>;
2275
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee) */
2635
+ /**
2636
+ * The **`tee()`** method of the two-element array containing the two resulting branches as new ReadableStream instances.
2637
+ *
2638
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee)
2639
+ */
2276
2640
  tee(): [ReadableStream<R>, ReadableStream<R>];
2277
2641
  values(options?: ReadableStreamValuesOptions): AsyncIterableIterator<R>;
2278
2642
  [Symbol.asyncIterator](
@@ -2280,7 +2644,7 @@ interface ReadableStream<R = any> {
2280
2644
  ): AsyncIterableIterator<R>;
2281
2645
  }
2282
2646
  /**
2283
- * 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.
2647
+ * The `ReadableStream` interface of the Streams API represents a readable stream of byte data.
2284
2648
  *
2285
2649
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)
2286
2650
  */
@@ -2295,26 +2659,50 @@ declare const ReadableStream: {
2295
2659
  strategy?: QueuingStrategy<R>,
2296
2660
  ): ReadableStream<R>;
2297
2661
  };
2298
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader) */
2662
+ /**
2663
+ * 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).
2664
+ *
2665
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader)
2666
+ */
2299
2667
  declare class ReadableStreamDefaultReader<R = any> {
2300
2668
  constructor(stream: ReadableStream);
2301
2669
  get closed(): Promise<void>;
2302
2670
  cancel(reason?: any): Promise<void>;
2303
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read) */
2671
+ /**
2672
+ * The **`read()`** method of the ReadableStreamDefaultReader interface returns a Promise providing access to the next chunk in the stream's internal queue.
2673
+ *
2674
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read)
2675
+ */
2304
2676
  read(): Promise<ReadableStreamReadResult<R>>;
2305
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock) */
2677
+ /**
2678
+ * The **`releaseLock()`** method of the ReadableStreamDefaultReader interface releases the reader's lock on the stream.
2679
+ *
2680
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock)
2681
+ */
2306
2682
  releaseLock(): void;
2307
2683
  }
2308
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */
2684
+ /**
2685
+ * The `ReadableStreamBYOBReader` interface of the Streams API defines a reader for a ReadableStream that supports zero-copy reading from an underlying byte source.
2686
+ *
2687
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader)
2688
+ */
2309
2689
  declare class ReadableStreamBYOBReader {
2310
2690
  constructor(stream: ReadableStream);
2311
2691
  get closed(): Promise<void>;
2312
2692
  cancel(reason?: any): Promise<void>;
2313
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */
2693
+ /**
2694
+ * 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.
2695
+ *
2696
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
2697
+ */
2314
2698
  read<T extends ArrayBufferView>(
2315
2699
  view: T,
2316
2700
  ): Promise<ReadableStreamReadResult<T>>;
2317
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */
2701
+ /**
2702
+ * The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
2703
+ *
2704
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock)
2705
+ */
2318
2706
  releaseLock(): void;
2319
2707
  readAtLeast<T extends ArrayBufferView>(
2320
2708
  minElements: number,
@@ -2332,60 +2720,148 @@ interface ReadableStreamGetReaderOptions {
2332
2720
  */
2333
2721
  mode: "byob";
2334
2722
  }
2335
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */
2723
+ /**
2724
+ * 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).
2725
+ *
2726
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest)
2727
+ */
2336
2728
  declare abstract class ReadableStreamBYOBRequest {
2337
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) */
2729
+ /**
2730
+ * The **`view`** getter property of the ReadableStreamBYOBRequest interface returns the current view.
2731
+ *
2732
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view)
2733
+ */
2338
2734
  get view(): Uint8Array | null;
2339
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) */
2735
+ /**
2736
+ * 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.
2737
+ *
2738
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond)
2739
+ */
2340
2740
  respond(bytesWritten: number): void;
2341
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) */
2741
+ /**
2742
+ * 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.
2743
+ *
2744
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView)
2745
+ */
2342
2746
  respondWithNewView(view: ArrayBuffer | ArrayBufferView): void;
2343
2747
  get atLeast(): number | null;
2344
2748
  }
2345
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController) */
2749
+ /**
2750
+ * The **`ReadableStreamDefaultController`** interface of the Streams API represents a controller allowing control of a ReadableStream's state and internal queue.
2751
+ *
2752
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController)
2753
+ */
2346
2754
  declare abstract class ReadableStreamDefaultController<R = any> {
2347
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize) */
2755
+ /**
2756
+ * The **`desiredSize`** read-only property of the required to fill the stream's internal queue.
2757
+ *
2758
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize)
2759
+ */
2348
2760
  get desiredSize(): number | null;
2349
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close) */
2761
+ /**
2762
+ * The **`close()`** method of the ReadableStreamDefaultController interface closes the associated stream.
2763
+ *
2764
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close)
2765
+ */
2350
2766
  close(): void;
2351
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue) */
2767
+ /**
2768
+ * The **`enqueue()`** method of the ```js-nolint enqueue(chunk) ``` - `chunk` - : The chunk to enqueue.
2769
+ *
2770
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue)
2771
+ */
2352
2772
  enqueue(chunk?: R): void;
2353
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error) */
2773
+ /**
2774
+ * The **`error()`** method of the with the associated stream to error.
2775
+ *
2776
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error)
2777
+ */
2354
2778
  error(reason: any): void;
2355
2779
  }
2356
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController) */
2780
+ /**
2781
+ * The **`ReadableByteStreamController`** interface of the Streams API represents a controller for a readable byte stream.
2782
+ *
2783
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController)
2784
+ */
2357
2785
  declare abstract class ReadableByteStreamController {
2358
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest) */
2786
+ /**
2787
+ * The **`byobRequest`** read-only property of the ReadableByteStreamController interface returns the current BYOB request, or `null` if there are no pending requests.
2788
+ *
2789
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest)
2790
+ */
2359
2791
  get byobRequest(): ReadableStreamBYOBRequest | null;
2360
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize) */
2792
+ /**
2793
+ * 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'.
2794
+ *
2795
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize)
2796
+ */
2361
2797
  get desiredSize(): number | null;
2362
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close) */
2798
+ /**
2799
+ * The **`close()`** method of the ReadableByteStreamController interface closes the associated stream.
2800
+ *
2801
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close)
2802
+ */
2363
2803
  close(): void;
2364
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue) */
2804
+ /**
2805
+ * 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).
2806
+ *
2807
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue)
2808
+ */
2365
2809
  enqueue(chunk: ArrayBuffer | ArrayBufferView): void;
2366
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error) */
2810
+ /**
2811
+ * The **`error()`** method of the ReadableByteStreamController interface causes any future interactions with the associated stream to error with the specified reason.
2812
+ *
2813
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error)
2814
+ */
2367
2815
  error(reason: any): void;
2368
2816
  }
2369
2817
  /**
2370
- * 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.
2818
+ * The **`WritableStreamDefaultController`** interface of the Streams API represents a controller allowing control of a WritableStream's state.
2371
2819
  *
2372
2820
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController)
2373
2821
  */
2374
2822
  declare abstract class WritableStreamDefaultController {
2375
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal) */
2823
+ /**
2824
+ * The read-only **`signal`** property of the WritableStreamDefaultController interface returns the AbortSignal associated with the controller.
2825
+ *
2826
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal)
2827
+ */
2376
2828
  get signal(): AbortSignal;
2377
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) */
2829
+ /**
2830
+ * The **`error()`** method of the with the associated stream to error.
2831
+ *
2832
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error)
2833
+ */
2378
2834
  error(reason?: any): void;
2379
2835
  }
2380
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) */
2836
+ /**
2837
+ * The **`TransformStreamDefaultController`** interface of the Streams API provides methods to manipulate the associated ReadableStream and WritableStream.
2838
+ *
2839
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController)
2840
+ */
2381
2841
  declare abstract class TransformStreamDefaultController<O = any> {
2382
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */
2842
+ /**
2843
+ * The **`desiredSize`** read-only property of the TransformStreamDefaultController interface returns the desired size to fill the queue of the associated ReadableStream.
2844
+ *
2845
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize)
2846
+ */
2383
2847
  get desiredSize(): number | null;
2384
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) */
2848
+ /**
2849
+ * The **`enqueue()`** method of the TransformStreamDefaultController interface enqueues the given chunk in the readable side of the stream.
2850
+ *
2851
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue)
2852
+ */
2385
2853
  enqueue(chunk?: O): void;
2386
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error) */
2854
+ /**
2855
+ * The **`error()`** method of the TransformStreamDefaultController interface errors both sides of the stream.
2856
+ *
2857
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error)
2858
+ */
2387
2859
  error(reason: any): void;
2388
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate) */
2860
+ /**
2861
+ * The **`terminate()`** method of the TransformStreamDefaultController interface closes the readable side and errors the writable side of the stream.
2862
+ *
2863
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate)
2864
+ */
2389
2865
  terminate(): void;
2390
2866
  }
2391
2867
  interface ReadableWritablePair<R = any, W = any> {
@@ -2398,7 +2874,7 @@ interface ReadableWritablePair<R = any, W = any> {
2398
2874
  readable: ReadableStream<R>;
2399
2875
  }
2400
2876
  /**
2401
- * 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.
2877
+ * The **`WritableStream`** interface of the Streams API provides a standard abstraction for writing streaming data to a destination, known as a sink.
2402
2878
  *
2403
2879
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream)
2404
2880
  */
@@ -2407,47 +2883,103 @@ declare class WritableStream<W = any> {
2407
2883
  underlyingSink?: UnderlyingSink,
2408
2884
  queuingStrategy?: QueuingStrategy,
2409
2885
  );
2410
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked) */
2886
+ /**
2887
+ * The **`locked`** read-only property of the WritableStream interface returns a boolean indicating whether the `WritableStream` is locked to a writer.
2888
+ *
2889
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked)
2890
+ */
2411
2891
  get locked(): boolean;
2412
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort) */
2892
+ /**
2893
+ * 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.
2894
+ *
2895
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort)
2896
+ */
2413
2897
  abort(reason?: any): Promise<void>;
2414
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close) */
2898
+ /**
2899
+ * The **`close()`** method of the WritableStream interface closes the associated stream.
2900
+ *
2901
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close)
2902
+ */
2415
2903
  close(): Promise<void>;
2416
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter) */
2904
+ /**
2905
+ * The **`getWriter()`** method of the WritableStream interface returns a new instance of WritableStreamDefaultWriter and locks the stream to that instance.
2906
+ *
2907
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter)
2908
+ */
2417
2909
  getWriter(): WritableStreamDefaultWriter<W>;
2418
2910
  }
2419
2911
  /**
2420
- * 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.
2912
+ * 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.
2421
2913
  *
2422
2914
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter)
2423
2915
  */
2424
2916
  declare class WritableStreamDefaultWriter<W = any> {
2425
2917
  constructor(stream: WritableStream);
2426
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed) */
2918
+ /**
2919
+ * The **`closed`** read-only property of the the stream errors or the writer's lock is released.
2920
+ *
2921
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed)
2922
+ */
2427
2923
  get closed(): Promise<void>;
2428
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready) */
2924
+ /**
2925
+ * 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.
2926
+ *
2927
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready)
2928
+ */
2429
2929
  get ready(): Promise<void>;
2430
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize) */
2930
+ /**
2931
+ * The **`desiredSize`** read-only property of the to fill the stream's internal queue.
2932
+ *
2933
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize)
2934
+ */
2431
2935
  get desiredSize(): number | null;
2432
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort) */
2936
+ /**
2937
+ * 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.
2938
+ *
2939
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort)
2940
+ */
2433
2941
  abort(reason?: any): Promise<void>;
2434
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close) */
2942
+ /**
2943
+ * The **`close()`** method of the stream.
2944
+ *
2945
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close)
2946
+ */
2435
2947
  close(): Promise<void>;
2436
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write) */
2948
+ /**
2949
+ * The **`write()`** method of the operation.
2950
+ *
2951
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write)
2952
+ */
2437
2953
  write(chunk?: W): Promise<void>;
2438
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock) */
2954
+ /**
2955
+ * The **`releaseLock()`** method of the corresponding stream.
2956
+ *
2957
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock)
2958
+ */
2439
2959
  releaseLock(): void;
2440
2960
  }
2441
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream) */
2961
+ /**
2962
+ * The **`TransformStream`** interface of the Streams API represents a concrete implementation of the pipe chain _transform stream_ concept.
2963
+ *
2964
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream)
2965
+ */
2442
2966
  declare class TransformStream<I = any, O = any> {
2443
2967
  constructor(
2444
2968
  transformer?: Transformer<I, O>,
2445
2969
  writableStrategy?: QueuingStrategy<I>,
2446
2970
  readableStrategy?: QueuingStrategy<O>,
2447
2971
  );
2448
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable) */
2972
+ /**
2973
+ * The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this `TransformStream`.
2974
+ *
2975
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable)
2976
+ */
2449
2977
  get readable(): ReadableStream<O>;
2450
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable) */
2978
+ /**
2979
+ * The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this `TransformStream`.
2980
+ *
2981
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable)
2982
+ */
2451
2983
  get writable(): WritableStream<I>;
2452
2984
  }
2453
2985
  declare class FixedLengthStream extends IdentityTransformStream {
@@ -2468,26 +3000,42 @@ interface IdentityTransformStreamQueuingStrategy {
2468
3000
  interface ReadableStreamValuesOptions {
2469
3001
  preventCancel?: boolean;
2470
3002
  }
2471
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */
3003
+ /**
3004
+ * The **`CompressionStream`** interface of the Compression Streams API is an API for compressing a stream of data.
3005
+ *
3006
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
3007
+ */
2472
3008
  declare class CompressionStream extends TransformStream<
2473
3009
  ArrayBuffer | ArrayBufferView,
2474
3010
  Uint8Array
2475
3011
  > {
2476
3012
  constructor(format: "gzip" | "deflate" | "deflate-raw");
2477
3013
  }
2478
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */
3014
+ /**
3015
+ * The **`DecompressionStream`** interface of the Compression Streams API is an API for decompressing a stream of data.
3016
+ *
3017
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
3018
+ */
2479
3019
  declare class DecompressionStream extends TransformStream<
2480
3020
  ArrayBuffer | ArrayBufferView,
2481
3021
  Uint8Array
2482
3022
  > {
2483
3023
  constructor(format: "gzip" | "deflate" | "deflate-raw");
2484
3024
  }
2485
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream) */
3025
+ /**
3026
+ * The **`TextEncoderStream`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding.
3027
+ *
3028
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
3029
+ */
2486
3030
  declare class TextEncoderStream extends TransformStream<string, Uint8Array> {
2487
3031
  constructor();
2488
3032
  get encoding(): string;
2489
3033
  }
2490
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream) */
3034
+ /**
3035
+ * 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.
3036
+ *
3037
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)
3038
+ */
2491
3039
  declare class TextDecoderStream extends TransformStream<
2492
3040
  ArrayBuffer | ArrayBufferView,
2493
3041
  string
@@ -2502,7 +3050,7 @@ interface TextDecoderStreamTextDecoderStreamInit {
2502
3050
  ignoreBOM?: boolean;
2503
3051
  }
2504
3052
  /**
2505
- * This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams.
3053
+ * The **`ByteLengthQueuingStrategy`** interface of the Streams API provides a built-in byte length queuing strategy that can be used when constructing streams.
2506
3054
  *
2507
3055
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy)
2508
3056
  */
@@ -2510,19 +3058,27 @@ declare class ByteLengthQueuingStrategy
2510
3058
  implements QueuingStrategy<ArrayBufferView>
2511
3059
  {
2512
3060
  constructor(init: QueuingStrategyInit);
2513
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark) */
3061
+ /**
3062
+ * The read-only **`ByteLengthQueuingStrategy.highWaterMark`** property returns the total number of bytes that can be contained in the internal queue before backpressure is applied.
3063
+ *
3064
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark)
3065
+ */
2514
3066
  get highWaterMark(): number;
2515
3067
  /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */
2516
3068
  get size(): (chunk?: any) => number;
2517
3069
  }
2518
3070
  /**
2519
- * This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams.
3071
+ * The **`CountQueuingStrategy`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams.
2520
3072
  *
2521
3073
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy)
2522
3074
  */
2523
3075
  declare class CountQueuingStrategy implements QueuingStrategy {
2524
3076
  constructor(init: QueuingStrategyInit);
2525
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark) */
3077
+ /**
3078
+ * The read-only **`CountQueuingStrategy.highWaterMark`** property returns the total number of chunks that can be contained in the internal queue before backpressure is applied.
3079
+ *
3080
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark)
3081
+ */
2526
3082
  get highWaterMark(): number;
2527
3083
  /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */
2528
3084
  get size(): (chunk?: any) => number;
@@ -2655,113 +3211,233 @@ interface UnsafeTraceMetrics {
2655
3211
  fromTrace(item: TraceItem): TraceMetrics;
2656
3212
  }
2657
3213
  /**
2658
- * The URL interface represents an object providing static methods used for creating object URLs.
3214
+ * The **`URL`** interface is used to parse, construct, normalize, and encode URL.
2659
3215
  *
2660
3216
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL)
2661
3217
  */
2662
3218
  declare class URL {
2663
3219
  constructor(url: string | URL, base?: string | URL);
2664
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin) */
3220
+ /**
3221
+ * The **`origin`** read-only property of the URL interface returns a string containing the Unicode serialization of the origin of the represented URL.
3222
+ *
3223
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin)
3224
+ */
2665
3225
  get origin(): string;
2666
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href) */
3226
+ /**
3227
+ * The **`href`** property of the URL interface is a string containing the whole URL.
3228
+ *
3229
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href)
3230
+ */
2667
3231
  get href(): string;
2668
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href) */
3232
+ /**
3233
+ * The **`href`** property of the URL interface is a string containing the whole URL.
3234
+ *
3235
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href)
3236
+ */
2669
3237
  set href(value: string);
2670
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol) */
3238
+ /**
3239
+ * The **`protocol`** property of the URL interface is a string containing the protocol or scheme of the URL, including the final `':'`.
3240
+ *
3241
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol)
3242
+ */
2671
3243
  get protocol(): string;
2672
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol) */
3244
+ /**
3245
+ * The **`protocol`** property of the URL interface is a string containing the protocol or scheme of the URL, including the final `':'`.
3246
+ *
3247
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol)
3248
+ */
2673
3249
  set protocol(value: string);
2674
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username) */
3250
+ /**
3251
+ * The **`username`** property of the URL interface is a string containing the username component of the URL.
3252
+ *
3253
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username)
3254
+ */
2675
3255
  get username(): string;
2676
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username) */
3256
+ /**
3257
+ * The **`username`** property of the URL interface is a string containing the username component of the URL.
3258
+ *
3259
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username)
3260
+ */
2677
3261
  set username(value: string);
2678
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password) */
3262
+ /**
3263
+ * The **`password`** property of the URL interface is a string containing the password component of the URL.
3264
+ *
3265
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password)
3266
+ */
2679
3267
  get password(): string;
2680
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password) */
3268
+ /**
3269
+ * The **`password`** property of the URL interface is a string containing the password component of the URL.
3270
+ *
3271
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password)
3272
+ */
2681
3273
  set password(value: string);
2682
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host) */
3274
+ /**
3275
+ * 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.
3276
+ *
3277
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host)
3278
+ */
2683
3279
  get host(): string;
2684
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host) */
3280
+ /**
3281
+ * 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.
3282
+ *
3283
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host)
3284
+ */
2685
3285
  set host(value: string);
2686
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname) */
3286
+ /**
3287
+ * The **`hostname`** property of the URL interface is a string containing either the domain name or IP address of the URL.
3288
+ *
3289
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname)
3290
+ */
2687
3291
  get hostname(): string;
2688
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname) */
3292
+ /**
3293
+ * The **`hostname`** property of the URL interface is a string containing either the domain name or IP address of the URL.
3294
+ *
3295
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname)
3296
+ */
2689
3297
  set hostname(value: string);
2690
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port) */
3298
+ /**
3299
+ * The **`port`** property of the URL interface is a string containing the port number of the URL.
3300
+ *
3301
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port)
3302
+ */
2691
3303
  get port(): string;
2692
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port) */
3304
+ /**
3305
+ * The **`port`** property of the URL interface is a string containing the port number of the URL.
3306
+ *
3307
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port)
3308
+ */
2693
3309
  set port(value: string);
2694
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname) */
3310
+ /**
3311
+ * The **`pathname`** property of the URL interface represents a location in a hierarchical structure.
3312
+ *
3313
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname)
3314
+ */
2695
3315
  get pathname(): string;
2696
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname) */
3316
+ /**
3317
+ * The **`pathname`** property of the URL interface represents a location in a hierarchical structure.
3318
+ *
3319
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname)
3320
+ */
2697
3321
  set pathname(value: string);
2698
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search) */
3322
+ /**
3323
+ * 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.
3324
+ *
3325
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search)
3326
+ */
2699
3327
  get search(): string;
2700
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search) */
3328
+ /**
3329
+ * 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.
3330
+ *
3331
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search)
3332
+ */
2701
3333
  set search(value: string);
2702
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash) */
3334
+ /**
3335
+ * The **`hash`** property of the URL interface is a string containing a `'#'` followed by the fragment identifier of the URL.
3336
+ *
3337
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash)
3338
+ */
2703
3339
  get hash(): string;
2704
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash) */
3340
+ /**
3341
+ * The **`hash`** property of the URL interface is a string containing a `'#'` followed by the fragment identifier of the URL.
3342
+ *
3343
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash)
3344
+ */
2705
3345
  set hash(value: string);
2706
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams) */
3346
+ /**
3347
+ * The **`searchParams`** read-only property of the access to the [MISSING: httpmethod('GET')] decoded query arguments contained in the URL.
3348
+ *
3349
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams)
3350
+ */
2707
3351
  get searchParams(): URLSearchParams;
2708
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON) */
3352
+ /**
3353
+ * 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.
3354
+ *
3355
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON)
3356
+ */
2709
3357
  toJSON(): string;
2710
3358
  /*function toString() { [native code] }*/
2711
3359
  toString(): string;
2712
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */
3360
+ /**
3361
+ * The **`URL.canParse()`** static method of the URL interface returns a boolean indicating whether or not an absolute URL, or a relative URL combined with a base URL, are parsable and valid.
3362
+ *
3363
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static)
3364
+ */
2713
3365
  static canParse(url: string, base?: string): boolean;
2714
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static) */
3366
+ /**
3367
+ * The **`URL.parse()`** static method of the URL interface returns a newly created URL object representing the URL defined by the parameters.
3368
+ *
3369
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static)
3370
+ */
2715
3371
  static parse(url: string, base?: string): URL | null;
2716
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */
3372
+ /**
3373
+ * The **`createObjectURL()`** static method of the URL interface creates a string containing a URL representing the object given in the parameter.
3374
+ *
3375
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static)
3376
+ */
2717
3377
  static createObjectURL(object: File | Blob): string;
2718
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) */
3378
+ /**
3379
+ * The **`revokeObjectURL()`** static method of the URL interface releases an existing object URL which was previously created by calling Call this method when you've finished using an object URL to let the browser know not to keep the reference to the file any longer.
3380
+ *
3381
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static)
3382
+ */
2719
3383
  static revokeObjectURL(object_url: string): void;
2720
3384
  }
2721
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) */
3385
+ /**
3386
+ * The **`URLSearchParams`** interface defines utility methods to work with the query string of a URL.
3387
+ *
3388
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams)
3389
+ */
2722
3390
  declare class URLSearchParams {
2723
3391
  constructor(
2724
3392
  init?: Iterable<Iterable<string>> | Record<string, string> | string,
2725
3393
  );
2726
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size) */
3394
+ /**
3395
+ * The **`size`** read-only property of the URLSearchParams interface indicates the total number of search parameter entries.
3396
+ *
3397
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size)
3398
+ */
2727
3399
  get size(): number;
2728
3400
  /**
2729
- * Appends a specified key/value pair as a new search parameter.
3401
+ * The **`append()`** method of the URLSearchParams interface appends a specified key/value pair as a new search parameter.
2730
3402
  *
2731
3403
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/append)
2732
3404
  */
2733
3405
  append(name: string, value: string): void;
2734
3406
  /**
2735
- * Deletes the given search parameter, and its associated value, from the list of all search parameters.
3407
+ * The **`delete()`** method of the URLSearchParams interface deletes specified parameters and their associated value(s) from the list of all search parameters.
2736
3408
  *
2737
3409
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete)
2738
3410
  */
2739
3411
  delete(name: string, value?: string): void;
2740
3412
  /**
2741
- * Returns the first value associated to the given search parameter.
3413
+ * The **`get()`** method of the URLSearchParams interface returns the first value associated to the given search parameter.
2742
3414
  *
2743
3415
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/get)
2744
3416
  */
2745
3417
  get(name: string): string | null;
2746
3418
  /**
2747
- * Returns all the values association with a given search parameter.
3419
+ * The **`getAll()`** method of the URLSearchParams interface returns all the values associated with a given search parameter as an array.
2748
3420
  *
2749
3421
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll)
2750
3422
  */
2751
3423
  getAll(name: string): string[];
2752
3424
  /**
2753
- * Returns a Boolean indicating if such a search parameter exists.
3425
+ * The **`has()`** method of the URLSearchParams interface returns a boolean value that indicates whether the specified parameter is in the search parameters.
2754
3426
  *
2755
3427
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)
2756
3428
  */
2757
3429
  has(name: string, value?: string): boolean;
2758
3430
  /**
2759
- * Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.
3431
+ * The **`set()`** method of the URLSearchParams interface sets the value associated with a given search parameter to the given value.
2760
3432
  *
2761
3433
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set)
2762
3434
  */
2763
3435
  set(name: string, value: string): void;
2764
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort) */
3436
+ /**
3437
+ * The **`URLSearchParams.sort()`** method sorts all key/value pairs contained in this object in place and returns `undefined`.
3438
+ *
3439
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort)
3440
+ */
2765
3441
  sort(): void;
2766
3442
  /* Returns an array of key, value pairs for every entry in the search params. */
2767
3443
  entries(): IterableIterator<[key: string, value: string]>;
@@ -2778,7 +3454,7 @@ declare class URLSearchParams {
2778
3454
  ) => void,
2779
3455
  thisArg?: This,
2780
3456
  ): void;
2781
- /*function toString() { [native code] } Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */
3457
+ /*function toString() { [native code] }*/
2782
3458
  toString(): string;
2783
3459
  [Symbol.iterator](): IterableIterator<[key: string, value: string]>;
2784
3460
  }
@@ -2833,26 +3509,26 @@ interface URLPatternOptions {
2833
3509
  ignoreCase?: boolean;
2834
3510
  }
2835
3511
  /**
2836
- * 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.
3512
+ * A `CloseEvent` is sent to clients using WebSockets when the connection is closed.
2837
3513
  *
2838
3514
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)
2839
3515
  */
2840
3516
  declare class CloseEvent extends Event {
2841
3517
  constructor(type: string, initializer?: CloseEventInit);
2842
3518
  /**
2843
- * Returns the WebSocket connection close code provided by the server.
3519
+ * The **`code`** read-only property of the CloseEvent interface returns a WebSocket connection close code indicating the reason the connection was closed.
2844
3520
  *
2845
3521
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)
2846
3522
  */
2847
3523
  readonly code: number;
2848
3524
  /**
2849
- * Returns the WebSocket connection close reason provided by the server.
3525
+ * 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.
2850
3526
  *
2851
3527
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)
2852
3528
  */
2853
3529
  readonly reason: string;
2854
3530
  /**
2855
- * Returns true if the connection closed cleanly; false otherwise.
3531
+ * The **`wasClean`** read-only property of the CloseEvent interface returns `true` if the connection closed cleanly.
2856
3532
  *
2857
3533
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean)
2858
3534
  */
@@ -2870,7 +3546,7 @@ type WebSocketEventMap = {
2870
3546
  error: ErrorEvent;
2871
3547
  };
2872
3548
  /**
2873
- * Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection.
3549
+ * 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.
2874
3550
  *
2875
3551
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
2876
3552
  */
@@ -2887,20 +3563,20 @@ declare var WebSocket: {
2887
3563
  readonly CLOSED: number;
2888
3564
  };
2889
3565
  /**
2890
- * Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection.
3566
+ * 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.
2891
3567
  *
2892
3568
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
2893
3569
  */
2894
3570
  interface WebSocket extends EventTarget<WebSocketEventMap> {
2895
3571
  accept(): void;
2896
3572
  /**
2897
- * Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView.
3573
+ * 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.
2898
3574
  *
2899
3575
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)
2900
3576
  */
2901
3577
  send(message: (ArrayBuffer | ArrayBufferView) | string): void;
2902
3578
  /**
2903
- * Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.
3579
+ * The **`WebSocket.close()`** method closes the already `CLOSED`, this method does nothing.
2904
3580
  *
2905
3581
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close)
2906
3582
  */
@@ -2908,25 +3584,25 @@ interface WebSocket extends EventTarget<WebSocketEventMap> {
2908
3584
  serializeAttachment(attachment: any): void;
2909
3585
  deserializeAttachment(): any | null;
2910
3586
  /**
2911
- * Returns the state of the WebSocket object's connection. It can have the values described below.
3587
+ * The **`WebSocket.readyState`** read-only property returns the current state of the WebSocket connection.
2912
3588
  *
2913
3589
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
2914
3590
  */
2915
3591
  readyState: number;
2916
3592
  /**
2917
- * Returns the URL that was used to establish the WebSocket connection.
3593
+ * The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
2918
3594
  *
2919
3595
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/url)
2920
3596
  */
2921
3597
  url: string | null;
2922
3598
  /**
2923
- * 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.
3599
+ * 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.
2924
3600
  *
2925
3601
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol)
2926
3602
  */
2927
3603
  protocol: string | null;
2928
3604
  /**
2929
- * Returns the extensions selected by the server, if any.
3605
+ * The **`WebSocket.extensions`** read-only property returns the extensions selected by the server.
2930
3606
  *
2931
3607
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/extensions)
2932
3608
  */
@@ -2995,29 +3671,33 @@ interface SocketInfo {
2995
3671
  remoteAddress?: string;
2996
3672
  localAddress?: string;
2997
3673
  }
2998
- /* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource) */
3674
+ /**
3675
+ * The **`EventSource`** interface is web content's interface to server-sent events.
3676
+ *
3677
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource)
3678
+ */
2999
3679
  declare class EventSource extends EventTarget {
3000
3680
  constructor(url: string, init?: EventSourceEventSourceInit);
3001
3681
  /**
3002
- * Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.
3682
+ * The **`close()`** method of the EventSource interface closes the connection, if one is made, and sets the ```js-nolint close() ``` None.
3003
3683
  *
3004
3684
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close)
3005
3685
  */
3006
3686
  close(): void;
3007
3687
  /**
3008
- * Returns the URL providing the event stream.
3688
+ * The **`url`** read-only property of the URL of the source.
3009
3689
  *
3010
3690
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url)
3011
3691
  */
3012
3692
  get url(): string;
3013
3693
  /**
3014
- * Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.
3694
+ * The **`withCredentials`** read-only property of the the `EventSource` object was instantiated with CORS credentials set.
3015
3695
  *
3016
3696
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials)
3017
3697
  */
3018
3698
  get withCredentials(): boolean;
3019
3699
  /**
3020
- * Returns the state of this EventSource object's connection. It can have the values described below.
3700
+ * The **`readyState`** read-only property of the connection.
3021
3701
  *
3022
3702
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState)
3023
3703
  */
@@ -3050,22 +3730,22 @@ interface Container {
3050
3730
  destroy(error?: any): Promise<void>;
3051
3731
  signal(signo: number): void;
3052
3732
  getTcpPort(port: number): Fetcher;
3733
+ setInactivityTimeout(durationMs: number | bigint): Promise<void>;
3053
3734
  }
3054
3735
  interface ContainerStartupOptions {
3055
3736
  entrypoint?: string[];
3056
3737
  enableInternet: boolean;
3057
3738
  env?: Record<string, string>;
3739
+ hardTimeout?: number | bigint;
3058
3740
  }
3059
3741
  /**
3060
- * 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.
3742
+ * 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.
3061
3743
  *
3062
3744
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort)
3063
3745
  */
3064
3746
  declare abstract class MessagePort extends EventTarget {
3065
3747
  /**
3066
- * 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.
3067
- *
3068
- * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
3748
+ * The **`postMessage()`** method of the transfers ownership of objects to other browsing contexts.
3069
3749
  *
3070
3750
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage)
3071
3751
  */
@@ -3074,13 +3754,13 @@ declare abstract class MessagePort extends EventTarget {
3074
3754
  options?: any[] | MessagePortPostMessageOptions,
3075
3755
  ): void;
3076
3756
  /**
3077
- * Disconnects the port, so that it is no longer active.
3757
+ * The **`close()`** method of the MessagePort interface disconnects the port, so it is no longer active.
3078
3758
  *
3079
3759
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close)
3080
3760
  */
3081
3761
  close(): void;
3082
3762
  /**
3083
- * Begins dispatching messages received on the port.
3763
+ * The **`start()`** method of the MessagePort interface starts the sending of messages queued on the port.
3084
3764
  *
3085
3765
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/start)
3086
3766
  */
@@ -3089,20 +3769,20 @@ declare abstract class MessagePort extends EventTarget {
3089
3769
  set onmessage(value: any | null);
3090
3770
  }
3091
3771
  /**
3092
- * This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties.
3772
+ * The **`MessageChannel`** interface of the Channel Messaging API allows us to create a new message channel and send data through it via its two MessagePort properties.
3093
3773
  *
3094
3774
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel)
3095
3775
  */
3096
3776
  declare class MessageChannel {
3097
3777
  constructor();
3098
3778
  /**
3099
- * Returns the first MessagePort object.
3779
+ * The **`port1`** read-only property of the the port attached to the context that originated the channel.
3100
3780
  *
3101
3781
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1)
3102
3782
  */
3103
3783
  readonly port1: MessagePort;
3104
3784
  /**
3105
- * Returns the second MessagePort object.
3785
+ * The **`port2`** read-only property of the the port attached to the context at the other end of the channel, which the message is initially sent to.
3106
3786
  *
3107
3787
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port2)
3108
3788
  */
@@ -3171,6 +3851,7 @@ interface WorkerLoaderModule {
3171
3851
  data?: ArrayBuffer;
3172
3852
  json?: any;
3173
3853
  py?: string;
3854
+ wasm?: ArrayBuffer;
3174
3855
  }
3175
3856
  interface WorkerLoaderWorkerCode {
3176
3857
  compatibilityDate: string;
@@ -6955,6 +7636,10 @@ type AutoRagSearchRequest = {
6955
7636
  ranker?: string;
6956
7637
  score_threshold?: number;
6957
7638
  };
7639
+ reranking?: {
7640
+ enabled?: boolean;
7641
+ model?: string;
7642
+ };
6958
7643
  rewrite_query?: boolean;
6959
7644
  };
6960
7645
  type AutoRagAiSearchRequest = AutoRagSearchRequest & {
@@ -8899,6 +9584,11 @@ declare namespace CloudflareWorkersModule {
8899
9584
  constructor(ctx: ExecutionContext, env: Env);
8900
9585
  fetch?(request: Request): Response | Promise<Response>;
8901
9586
  tail?(events: TraceItem[]): void | Promise<void>;
9587
+ tailStream?(
9588
+ event: TailStream.TailEvent<TailStream.Onset>,
9589
+ ):
9590
+ | TailStream.TailEventHandlerType
9591
+ | Promise<TailStream.TailEventHandlerType>;
8902
9592
  trace?(traces: TraceItem[]): void | Promise<void>;
8903
9593
  scheduled?(controller: ScheduledController): void | Promise<void>;
8904
9594
  queue?(batch: MessageBatch<unknown>): void | Promise<void>;
@@ -9287,7 +9977,14 @@ interface VectorizeError {
9287
9977
  *
9288
9978
  * This list is expected to grow as support for more operations are released.
9289
9979
  */
9290
- type VectorizeVectorMetadataFilterOp = "$eq" | "$ne";
9980
+ type VectorizeVectorMetadataFilterOp =
9981
+ | "$eq"
9982
+ | "$ne"
9983
+ | "$lt"
9984
+ | "$lte"
9985
+ | "$gt"
9986
+ | "$gte";
9987
+ type VectorizeVectorMetadataFilterCollectionOp = "$in" | "$nin";
9291
9988
  /**
9292
9989
  * Filter criteria for vector metadata used to limit the retrieved query result set.
9293
9990
  */
@@ -9300,6 +9997,12 @@ type VectorizeVectorMetadataFilter = {
9300
9997
  VectorizeVectorMetadataValue,
9301
9998
  string[]
9302
9999
  > | null;
10000
+ }
10001
+ | {
10002
+ [Op in VectorizeVectorMetadataFilterCollectionOp]?: Exclude<
10003
+ VectorizeVectorMetadataValue,
10004
+ string[]
10005
+ >[];
9303
10006
  };
9304
10007
  };
9305
10008
  /**