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