@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/2023-07-01/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,24 +1846,48 @@ 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 **`getSetCookie()`** method of the Headers interface returns an array containing the values of all Set-Cookie headers associated with a response.
|
|
1864
|
+
*
|
|
1865
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie)
|
|
1866
|
+
*/
|
|
1585
1867
|
getSetCookie(): string[];
|
|
1586
|
-
|
|
1868
|
+
/**
|
|
1869
|
+
* The **`has()`** method of the Headers interface returns a boolean stating whether a `Headers` object contains a certain header.
|
|
1870
|
+
*
|
|
1871
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has)
|
|
1872
|
+
*/
|
|
1587
1873
|
has(name: string): boolean;
|
|
1588
|
-
|
|
1874
|
+
/**
|
|
1875
|
+
* 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.
|
|
1876
|
+
*
|
|
1877
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set)
|
|
1878
|
+
*/
|
|
1589
1879
|
set(name: string, value: string): void;
|
|
1590
|
-
|
|
1880
|
+
/**
|
|
1881
|
+
* 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.
|
|
1882
|
+
*
|
|
1883
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append)
|
|
1884
|
+
*/
|
|
1591
1885
|
append(name: string, value: string): void;
|
|
1592
|
-
|
|
1886
|
+
/**
|
|
1887
|
+
* The **`delete()`** method of the Headers interface deletes a header from the current `Headers` object.
|
|
1888
|
+
*
|
|
1889
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete)
|
|
1890
|
+
*/
|
|
1593
1891
|
delete(name: string): void;
|
|
1594
1892
|
forEach<This = unknown>(
|
|
1595
1893
|
callback: (this: This, value: string, key: string, parent: Headers) => void,
|
|
@@ -1630,7 +1928,7 @@ export declare abstract class Body {
|
|
|
1630
1928
|
blob(): Promise<Blob>;
|
|
1631
1929
|
}
|
|
1632
1930
|
/**
|
|
1633
|
-
*
|
|
1931
|
+
* The **`Response`** interface of the Fetch API represents the response to a request.
|
|
1634
1932
|
*
|
|
1635
1933
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)
|
|
1636
1934
|
*/
|
|
@@ -1642,28 +1940,60 @@ export declare var Response: {
|
|
|
1642
1940
|
json(any: any, maybeInit?: ResponseInit | Response): Response;
|
|
1643
1941
|
};
|
|
1644
1942
|
/**
|
|
1645
|
-
*
|
|
1943
|
+
* The **`Response`** interface of the Fetch API represents the response to a request.
|
|
1646
1944
|
*
|
|
1647
1945
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)
|
|
1648
1946
|
*/
|
|
1649
1947
|
export interface Response extends Body {
|
|
1650
|
-
|
|
1948
|
+
/**
|
|
1949
|
+
* The **`clone()`** method of the Response interface creates a clone of a response object, identical in every way, but stored in a different variable.
|
|
1950
|
+
*
|
|
1951
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone)
|
|
1952
|
+
*/
|
|
1651
1953
|
clone(): Response;
|
|
1652
|
-
|
|
1954
|
+
/**
|
|
1955
|
+
* The **`status`** read-only property of the Response interface contains the HTTP status codes of the response.
|
|
1956
|
+
*
|
|
1957
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status)
|
|
1958
|
+
*/
|
|
1653
1959
|
status: number;
|
|
1654
|
-
|
|
1960
|
+
/**
|
|
1961
|
+
* The **`statusText`** read-only property of the Response interface contains the status message corresponding to the HTTP status code in Response.status.
|
|
1962
|
+
*
|
|
1963
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText)
|
|
1964
|
+
*/
|
|
1655
1965
|
statusText: string;
|
|
1656
|
-
|
|
1966
|
+
/**
|
|
1967
|
+
* The **`headers`** read-only property of the with the response.
|
|
1968
|
+
*
|
|
1969
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers)
|
|
1970
|
+
*/
|
|
1657
1971
|
headers: Headers;
|
|
1658
|
-
|
|
1972
|
+
/**
|
|
1973
|
+
* 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.
|
|
1974
|
+
*
|
|
1975
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok)
|
|
1976
|
+
*/
|
|
1659
1977
|
ok: boolean;
|
|
1660
|
-
|
|
1978
|
+
/**
|
|
1979
|
+
* 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.
|
|
1980
|
+
*
|
|
1981
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected)
|
|
1982
|
+
*/
|
|
1661
1983
|
redirected: boolean;
|
|
1662
|
-
|
|
1984
|
+
/**
|
|
1985
|
+
* The **`url`** read-only property of the Response interface contains the URL of the response.
|
|
1986
|
+
*
|
|
1987
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url)
|
|
1988
|
+
*/
|
|
1663
1989
|
url: string;
|
|
1664
1990
|
webSocket: WebSocket | null;
|
|
1665
1991
|
cf: any | undefined;
|
|
1666
|
-
|
|
1992
|
+
/**
|
|
1993
|
+
* The **`type`** read-only property of the Response interface contains the type of the response.
|
|
1994
|
+
*
|
|
1995
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type)
|
|
1996
|
+
*/
|
|
1667
1997
|
type: "default" | "error";
|
|
1668
1998
|
}
|
|
1669
1999
|
export interface ResponseInit {
|
|
@@ -1679,7 +2009,7 @@ export type RequestInfo<
|
|
|
1679
2009
|
Cf = CfProperties<CfHostMetadata>,
|
|
1680
2010
|
> = Request<CfHostMetadata, Cf> | string;
|
|
1681
2011
|
/**
|
|
1682
|
-
*
|
|
2012
|
+
* The **`Request`** interface of the Fetch API represents a resource request.
|
|
1683
2013
|
*
|
|
1684
2014
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request)
|
|
1685
2015
|
*/
|
|
@@ -1691,7 +2021,7 @@ export declare var Request: {
|
|
|
1691
2021
|
): Request<CfHostMetadata, Cf>;
|
|
1692
2022
|
};
|
|
1693
2023
|
/**
|
|
1694
|
-
*
|
|
2024
|
+
* The **`Request`** interface of the Fetch API represents a resource request.
|
|
1695
2025
|
*
|
|
1696
2026
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request)
|
|
1697
2027
|
*/
|
|
@@ -1699,48 +2029,52 @@ export interface Request<
|
|
|
1699
2029
|
CfHostMetadata = unknown,
|
|
1700
2030
|
Cf = CfProperties<CfHostMetadata>,
|
|
1701
2031
|
> extends Body {
|
|
1702
|
-
|
|
2032
|
+
/**
|
|
2033
|
+
* The **`clone()`** method of the Request interface creates a copy of the current `Request` object.
|
|
2034
|
+
*
|
|
2035
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone)
|
|
2036
|
+
*/
|
|
1703
2037
|
clone(): Request<CfHostMetadata, Cf>;
|
|
1704
2038
|
/**
|
|
1705
|
-
*
|
|
2039
|
+
* The **`method`** read-only property of the `POST`, etc.) A String indicating the method of the request.
|
|
1706
2040
|
*
|
|
1707
2041
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method)
|
|
1708
2042
|
*/
|
|
1709
2043
|
method: string;
|
|
1710
2044
|
/**
|
|
1711
|
-
*
|
|
2045
|
+
* The **`url`** read-only property of the Request interface contains the URL of the request.
|
|
1712
2046
|
*
|
|
1713
2047
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/url)
|
|
1714
2048
|
*/
|
|
1715
2049
|
url: string;
|
|
1716
2050
|
/**
|
|
1717
|
-
*
|
|
2051
|
+
* The **`headers`** read-only property of the with the request.
|
|
1718
2052
|
*
|
|
1719
2053
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/headers)
|
|
1720
2054
|
*/
|
|
1721
2055
|
headers: Headers;
|
|
1722
2056
|
/**
|
|
1723
|
-
*
|
|
2057
|
+
* The **`redirect`** read-only property of the Request interface contains the mode for how redirects are handled.
|
|
1724
2058
|
*
|
|
1725
2059
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/redirect)
|
|
1726
2060
|
*/
|
|
1727
2061
|
redirect: string;
|
|
1728
2062
|
fetcher: Fetcher | null;
|
|
1729
2063
|
/**
|
|
1730
|
-
*
|
|
2064
|
+
* The read-only **`signal`** property of the Request interface returns the AbortSignal associated with the request.
|
|
1731
2065
|
*
|
|
1732
2066
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/signal)
|
|
1733
2067
|
*/
|
|
1734
2068
|
signal: AbortSignal;
|
|
1735
2069
|
cf: Cf | undefined;
|
|
1736
2070
|
/**
|
|
1737
|
-
*
|
|
2071
|
+
* The **`integrity`** read-only property of the Request interface contains the subresource integrity value of the request.
|
|
1738
2072
|
*
|
|
1739
2073
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity)
|
|
1740
2074
|
*/
|
|
1741
2075
|
integrity: string;
|
|
1742
2076
|
/**
|
|
1743
|
-
*
|
|
2077
|
+
* 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.
|
|
1744
2078
|
*
|
|
1745
2079
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive)
|
|
1746
2080
|
*/
|
|
@@ -2249,30 +2583,58 @@ export type ReadableStreamReadResult<R = any> =
|
|
|
2249
2583
|
value?: undefined;
|
|
2250
2584
|
};
|
|
2251
2585
|
/**
|
|
2252
|
-
*
|
|
2586
|
+
* The `ReadableStream` interface of the Streams API represents a readable stream of byte data.
|
|
2253
2587
|
*
|
|
2254
2588
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)
|
|
2255
2589
|
*/
|
|
2256
2590
|
export interface ReadableStream<R = any> {
|
|
2257
|
-
|
|
2591
|
+
/**
|
|
2592
|
+
* The **`locked`** read-only property of the ReadableStream interface returns whether or not the readable stream is locked to a reader.
|
|
2593
|
+
*
|
|
2594
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked)
|
|
2595
|
+
*/
|
|
2258
2596
|
get locked(): boolean;
|
|
2259
|
-
|
|
2597
|
+
/**
|
|
2598
|
+
* The **`cancel()`** method of the ReadableStream interface returns a Promise that resolves when the stream is canceled.
|
|
2599
|
+
*
|
|
2600
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel)
|
|
2601
|
+
*/
|
|
2260
2602
|
cancel(reason?: any): Promise<void>;
|
|
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(): ReadableStreamDefaultReader<R>;
|
|
2263
|
-
|
|
2609
|
+
/**
|
|
2610
|
+
* The **`getReader()`** method of the ReadableStream interface creates a reader and locks the stream to it.
|
|
2611
|
+
*
|
|
2612
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader)
|
|
2613
|
+
*/
|
|
2264
2614
|
getReader(options: ReadableStreamGetReaderOptions): ReadableStreamBYOBReader;
|
|
2265
|
-
|
|
2615
|
+
/**
|
|
2616
|
+
* 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.
|
|
2617
|
+
*
|
|
2618
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough)
|
|
2619
|
+
*/
|
|
2266
2620
|
pipeThrough<T>(
|
|
2267
2621
|
transform: ReadableWritablePair<T, R>,
|
|
2268
2622
|
options?: StreamPipeOptions,
|
|
2269
2623
|
): ReadableStream<T>;
|
|
2270
|
-
|
|
2624
|
+
/**
|
|
2625
|
+
* 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.
|
|
2626
|
+
*
|
|
2627
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo)
|
|
2628
|
+
*/
|
|
2271
2629
|
pipeTo(
|
|
2272
2630
|
destination: WritableStream<R>,
|
|
2273
2631
|
options?: StreamPipeOptions,
|
|
2274
2632
|
): Promise<void>;
|
|
2275
|
-
|
|
2633
|
+
/**
|
|
2634
|
+
* The **`tee()`** method of the two-element array containing the two resulting branches as new ReadableStream instances.
|
|
2635
|
+
*
|
|
2636
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee)
|
|
2637
|
+
*/
|
|
2276
2638
|
tee(): [ReadableStream<R>, ReadableStream<R>];
|
|
2277
2639
|
values(options?: ReadableStreamValuesOptions): AsyncIterableIterator<R>;
|
|
2278
2640
|
[Symbol.asyncIterator](
|
|
@@ -2280,7 +2642,7 @@ export interface ReadableStream<R = any> {
|
|
|
2280
2642
|
): AsyncIterableIterator<R>;
|
|
2281
2643
|
}
|
|
2282
2644
|
/**
|
|
2283
|
-
*
|
|
2645
|
+
* The `ReadableStream` interface of the Streams API represents a readable stream of byte data.
|
|
2284
2646
|
*
|
|
2285
2647
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)
|
|
2286
2648
|
*/
|
|
@@ -2295,26 +2657,50 @@ export declare const ReadableStream: {
|
|
|
2295
2657
|
strategy?: QueuingStrategy<R>,
|
|
2296
2658
|
): ReadableStream<R>;
|
|
2297
2659
|
};
|
|
2298
|
-
|
|
2660
|
+
/**
|
|
2661
|
+
* 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).
|
|
2662
|
+
*
|
|
2663
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader)
|
|
2664
|
+
*/
|
|
2299
2665
|
export declare class ReadableStreamDefaultReader<R = any> {
|
|
2300
2666
|
constructor(stream: ReadableStream);
|
|
2301
2667
|
get closed(): Promise<void>;
|
|
2302
2668
|
cancel(reason?: any): Promise<void>;
|
|
2303
|
-
|
|
2669
|
+
/**
|
|
2670
|
+
* The **`read()`** method of the ReadableStreamDefaultReader interface returns a Promise providing access to the next chunk in the stream's internal queue.
|
|
2671
|
+
*
|
|
2672
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read)
|
|
2673
|
+
*/
|
|
2304
2674
|
read(): Promise<ReadableStreamReadResult<R>>;
|
|
2305
|
-
|
|
2675
|
+
/**
|
|
2676
|
+
* The **`releaseLock()`** method of the ReadableStreamDefaultReader interface releases the reader's lock on the stream.
|
|
2677
|
+
*
|
|
2678
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock)
|
|
2679
|
+
*/
|
|
2306
2680
|
releaseLock(): void;
|
|
2307
2681
|
}
|
|
2308
|
-
|
|
2682
|
+
/**
|
|
2683
|
+
* The `ReadableStreamBYOBReader` interface of the Streams API defines a reader for a ReadableStream that supports zero-copy reading from an underlying byte source.
|
|
2684
|
+
*
|
|
2685
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader)
|
|
2686
|
+
*/
|
|
2309
2687
|
export declare class ReadableStreamBYOBReader {
|
|
2310
2688
|
constructor(stream: ReadableStream);
|
|
2311
2689
|
get closed(): Promise<void>;
|
|
2312
2690
|
cancel(reason?: any): Promise<void>;
|
|
2313
|
-
|
|
2691
|
+
/**
|
|
2692
|
+
* 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.
|
|
2693
|
+
*
|
|
2694
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
|
|
2695
|
+
*/
|
|
2314
2696
|
read<T extends ArrayBufferView>(
|
|
2315
2697
|
view: T,
|
|
2316
2698
|
): Promise<ReadableStreamReadResult<T>>;
|
|
2317
|
-
|
|
2699
|
+
/**
|
|
2700
|
+
* The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
|
|
2701
|
+
*
|
|
2702
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock)
|
|
2703
|
+
*/
|
|
2318
2704
|
releaseLock(): void;
|
|
2319
2705
|
readAtLeast<T extends ArrayBufferView>(
|
|
2320
2706
|
minElements: number,
|
|
@@ -2332,60 +2718,148 @@ export interface ReadableStreamGetReaderOptions {
|
|
|
2332
2718
|
*/
|
|
2333
2719
|
mode: "byob";
|
|
2334
2720
|
}
|
|
2335
|
-
|
|
2721
|
+
/**
|
|
2722
|
+
* 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).
|
|
2723
|
+
*
|
|
2724
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest)
|
|
2725
|
+
*/
|
|
2336
2726
|
export declare abstract class ReadableStreamBYOBRequest {
|
|
2337
|
-
|
|
2727
|
+
/**
|
|
2728
|
+
* The **`view`** getter property of the ReadableStreamBYOBRequest interface returns the current view.
|
|
2729
|
+
*
|
|
2730
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view)
|
|
2731
|
+
*/
|
|
2338
2732
|
get view(): Uint8Array | null;
|
|
2339
|
-
|
|
2733
|
+
/**
|
|
2734
|
+
* 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.
|
|
2735
|
+
*
|
|
2736
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond)
|
|
2737
|
+
*/
|
|
2340
2738
|
respond(bytesWritten: number): void;
|
|
2341
|
-
|
|
2739
|
+
/**
|
|
2740
|
+
* 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.
|
|
2741
|
+
*
|
|
2742
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView)
|
|
2743
|
+
*/
|
|
2342
2744
|
respondWithNewView(view: ArrayBuffer | ArrayBufferView): void;
|
|
2343
2745
|
get atLeast(): number | null;
|
|
2344
2746
|
}
|
|
2345
|
-
|
|
2747
|
+
/**
|
|
2748
|
+
* The **`ReadableStreamDefaultController`** interface of the Streams API represents a controller allowing control of a ReadableStream's state and internal queue.
|
|
2749
|
+
*
|
|
2750
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController)
|
|
2751
|
+
*/
|
|
2346
2752
|
export declare abstract class ReadableStreamDefaultController<R = any> {
|
|
2347
|
-
|
|
2753
|
+
/**
|
|
2754
|
+
* The **`desiredSize`** read-only property of the required to fill the stream's internal queue.
|
|
2755
|
+
*
|
|
2756
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize)
|
|
2757
|
+
*/
|
|
2348
2758
|
get desiredSize(): number | null;
|
|
2349
|
-
|
|
2759
|
+
/**
|
|
2760
|
+
* The **`close()`** method of the ReadableStreamDefaultController interface closes the associated stream.
|
|
2761
|
+
*
|
|
2762
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close)
|
|
2763
|
+
*/
|
|
2350
2764
|
close(): void;
|
|
2351
|
-
|
|
2765
|
+
/**
|
|
2766
|
+
* The **`enqueue()`** method of the ```js-nolint enqueue(chunk) ``` - `chunk` - : The chunk to enqueue.
|
|
2767
|
+
*
|
|
2768
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue)
|
|
2769
|
+
*/
|
|
2352
2770
|
enqueue(chunk?: R): void;
|
|
2353
|
-
|
|
2771
|
+
/**
|
|
2772
|
+
* The **`error()`** method of the with the associated stream to error.
|
|
2773
|
+
*
|
|
2774
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error)
|
|
2775
|
+
*/
|
|
2354
2776
|
error(reason: any): void;
|
|
2355
2777
|
}
|
|
2356
|
-
|
|
2778
|
+
/**
|
|
2779
|
+
* The **`ReadableByteStreamController`** interface of the Streams API represents a controller for a readable byte stream.
|
|
2780
|
+
*
|
|
2781
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController)
|
|
2782
|
+
*/
|
|
2357
2783
|
export declare abstract class ReadableByteStreamController {
|
|
2358
|
-
|
|
2784
|
+
/**
|
|
2785
|
+
* The **`byobRequest`** read-only property of the ReadableByteStreamController interface returns the current BYOB request, or `null` if there are no pending requests.
|
|
2786
|
+
*
|
|
2787
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest)
|
|
2788
|
+
*/
|
|
2359
2789
|
get byobRequest(): ReadableStreamBYOBRequest | null;
|
|
2360
|
-
|
|
2790
|
+
/**
|
|
2791
|
+
* 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'.
|
|
2792
|
+
*
|
|
2793
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize)
|
|
2794
|
+
*/
|
|
2361
2795
|
get desiredSize(): number | null;
|
|
2362
|
-
|
|
2796
|
+
/**
|
|
2797
|
+
* The **`close()`** method of the ReadableByteStreamController interface closes the associated stream.
|
|
2798
|
+
*
|
|
2799
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close)
|
|
2800
|
+
*/
|
|
2363
2801
|
close(): void;
|
|
2364
|
-
|
|
2802
|
+
/**
|
|
2803
|
+
* 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).
|
|
2804
|
+
*
|
|
2805
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue)
|
|
2806
|
+
*/
|
|
2365
2807
|
enqueue(chunk: ArrayBuffer | ArrayBufferView): void;
|
|
2366
|
-
|
|
2808
|
+
/**
|
|
2809
|
+
* The **`error()`** method of the ReadableByteStreamController interface causes any future interactions with the associated stream to error with the specified reason.
|
|
2810
|
+
*
|
|
2811
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error)
|
|
2812
|
+
*/
|
|
2367
2813
|
error(reason: any): void;
|
|
2368
2814
|
}
|
|
2369
2815
|
/**
|
|
2370
|
-
*
|
|
2816
|
+
* The **`WritableStreamDefaultController`** interface of the Streams API represents a controller allowing control of a WritableStream's state.
|
|
2371
2817
|
*
|
|
2372
2818
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController)
|
|
2373
2819
|
*/
|
|
2374
2820
|
export declare abstract class WritableStreamDefaultController {
|
|
2375
|
-
|
|
2821
|
+
/**
|
|
2822
|
+
* The read-only **`signal`** property of the WritableStreamDefaultController interface returns the AbortSignal associated with the controller.
|
|
2823
|
+
*
|
|
2824
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal)
|
|
2825
|
+
*/
|
|
2376
2826
|
get signal(): AbortSignal;
|
|
2377
|
-
|
|
2827
|
+
/**
|
|
2828
|
+
* The **`error()`** method of the with the associated stream to error.
|
|
2829
|
+
*
|
|
2830
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error)
|
|
2831
|
+
*/
|
|
2378
2832
|
error(reason?: any): void;
|
|
2379
2833
|
}
|
|
2380
|
-
|
|
2834
|
+
/**
|
|
2835
|
+
* The **`TransformStreamDefaultController`** interface of the Streams API provides methods to manipulate the associated ReadableStream and WritableStream.
|
|
2836
|
+
*
|
|
2837
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController)
|
|
2838
|
+
*/
|
|
2381
2839
|
export declare abstract class TransformStreamDefaultController<O = any> {
|
|
2382
|
-
|
|
2840
|
+
/**
|
|
2841
|
+
* The **`desiredSize`** read-only property of the TransformStreamDefaultController interface returns the desired size to fill the queue of the associated ReadableStream.
|
|
2842
|
+
*
|
|
2843
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize)
|
|
2844
|
+
*/
|
|
2383
2845
|
get desiredSize(): number | null;
|
|
2384
|
-
|
|
2846
|
+
/**
|
|
2847
|
+
* The **`enqueue()`** method of the TransformStreamDefaultController interface enqueues the given chunk in the readable side of the stream.
|
|
2848
|
+
*
|
|
2849
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue)
|
|
2850
|
+
*/
|
|
2385
2851
|
enqueue(chunk?: O): void;
|
|
2386
|
-
|
|
2852
|
+
/**
|
|
2853
|
+
* The **`error()`** method of the TransformStreamDefaultController interface errors both sides of the stream.
|
|
2854
|
+
*
|
|
2855
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error)
|
|
2856
|
+
*/
|
|
2387
2857
|
error(reason: any): void;
|
|
2388
|
-
|
|
2858
|
+
/**
|
|
2859
|
+
* The **`terminate()`** method of the TransformStreamDefaultController interface closes the readable side and errors the writable side of the stream.
|
|
2860
|
+
*
|
|
2861
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate)
|
|
2862
|
+
*/
|
|
2389
2863
|
terminate(): void;
|
|
2390
2864
|
}
|
|
2391
2865
|
export interface ReadableWritablePair<R = any, W = any> {
|
|
@@ -2398,7 +2872,7 @@ export interface ReadableWritablePair<R = any, W = any> {
|
|
|
2398
2872
|
readable: ReadableStream<R>;
|
|
2399
2873
|
}
|
|
2400
2874
|
/**
|
|
2401
|
-
*
|
|
2875
|
+
* The **`WritableStream`** interface of the Streams API provides a standard abstraction for writing streaming data to a destination, known as a sink.
|
|
2402
2876
|
*
|
|
2403
2877
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream)
|
|
2404
2878
|
*/
|
|
@@ -2407,47 +2881,103 @@ export declare class WritableStream<W = any> {
|
|
|
2407
2881
|
underlyingSink?: UnderlyingSink,
|
|
2408
2882
|
queuingStrategy?: QueuingStrategy,
|
|
2409
2883
|
);
|
|
2410
|
-
|
|
2884
|
+
/**
|
|
2885
|
+
* The **`locked`** read-only property of the WritableStream interface returns a boolean indicating whether the `WritableStream` is locked to a writer.
|
|
2886
|
+
*
|
|
2887
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked)
|
|
2888
|
+
*/
|
|
2411
2889
|
get locked(): boolean;
|
|
2412
|
-
|
|
2890
|
+
/**
|
|
2891
|
+
* 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.
|
|
2892
|
+
*
|
|
2893
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort)
|
|
2894
|
+
*/
|
|
2413
2895
|
abort(reason?: any): Promise<void>;
|
|
2414
|
-
|
|
2896
|
+
/**
|
|
2897
|
+
* The **`close()`** method of the WritableStream interface closes the associated stream.
|
|
2898
|
+
*
|
|
2899
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close)
|
|
2900
|
+
*/
|
|
2415
2901
|
close(): Promise<void>;
|
|
2416
|
-
|
|
2902
|
+
/**
|
|
2903
|
+
* The **`getWriter()`** method of the WritableStream interface returns a new instance of WritableStreamDefaultWriter and locks the stream to that instance.
|
|
2904
|
+
*
|
|
2905
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter)
|
|
2906
|
+
*/
|
|
2417
2907
|
getWriter(): WritableStreamDefaultWriter<W>;
|
|
2418
2908
|
}
|
|
2419
2909
|
/**
|
|
2420
|
-
*
|
|
2910
|
+
* The **`WritableStreamDefaultWriter`** interface of the Streams API is the object returned by WritableStream.getWriter() and once created locks the writer to the `WritableStream` ensuring that no other streams can write to the underlying sink.
|
|
2421
2911
|
*
|
|
2422
2912
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter)
|
|
2423
2913
|
*/
|
|
2424
2914
|
export declare class WritableStreamDefaultWriter<W = any> {
|
|
2425
2915
|
constructor(stream: WritableStream);
|
|
2426
|
-
|
|
2916
|
+
/**
|
|
2917
|
+
* The **`closed`** read-only property of the the stream errors or the writer's lock is released.
|
|
2918
|
+
*
|
|
2919
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed)
|
|
2920
|
+
*/
|
|
2427
2921
|
get closed(): Promise<void>;
|
|
2428
|
-
|
|
2922
|
+
/**
|
|
2923
|
+
* 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.
|
|
2924
|
+
*
|
|
2925
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready)
|
|
2926
|
+
*/
|
|
2429
2927
|
get ready(): Promise<void>;
|
|
2430
|
-
|
|
2928
|
+
/**
|
|
2929
|
+
* The **`desiredSize`** read-only property of the to fill the stream's internal queue.
|
|
2930
|
+
*
|
|
2931
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize)
|
|
2932
|
+
*/
|
|
2431
2933
|
get desiredSize(): number | null;
|
|
2432
|
-
|
|
2934
|
+
/**
|
|
2935
|
+
* 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.
|
|
2936
|
+
*
|
|
2937
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort)
|
|
2938
|
+
*/
|
|
2433
2939
|
abort(reason?: any): Promise<void>;
|
|
2434
|
-
|
|
2940
|
+
/**
|
|
2941
|
+
* The **`close()`** method of the stream.
|
|
2942
|
+
*
|
|
2943
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close)
|
|
2944
|
+
*/
|
|
2435
2945
|
close(): Promise<void>;
|
|
2436
|
-
|
|
2946
|
+
/**
|
|
2947
|
+
* The **`write()`** method of the operation.
|
|
2948
|
+
*
|
|
2949
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write)
|
|
2950
|
+
*/
|
|
2437
2951
|
write(chunk?: W): Promise<void>;
|
|
2438
|
-
|
|
2952
|
+
/**
|
|
2953
|
+
* The **`releaseLock()`** method of the corresponding stream.
|
|
2954
|
+
*
|
|
2955
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock)
|
|
2956
|
+
*/
|
|
2439
2957
|
releaseLock(): void;
|
|
2440
2958
|
}
|
|
2441
|
-
|
|
2959
|
+
/**
|
|
2960
|
+
* The **`TransformStream`** interface of the Streams API represents a concrete implementation of the pipe chain _transform stream_ concept.
|
|
2961
|
+
*
|
|
2962
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream)
|
|
2963
|
+
*/
|
|
2442
2964
|
export declare class TransformStream<I = any, O = any> {
|
|
2443
2965
|
constructor(
|
|
2444
2966
|
transformer?: Transformer<I, O>,
|
|
2445
2967
|
writableStrategy?: QueuingStrategy<I>,
|
|
2446
2968
|
readableStrategy?: QueuingStrategy<O>,
|
|
2447
2969
|
);
|
|
2448
|
-
|
|
2970
|
+
/**
|
|
2971
|
+
* The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this `TransformStream`.
|
|
2972
|
+
*
|
|
2973
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable)
|
|
2974
|
+
*/
|
|
2449
2975
|
get readable(): ReadableStream<O>;
|
|
2450
|
-
|
|
2976
|
+
/**
|
|
2977
|
+
* The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this `TransformStream`.
|
|
2978
|
+
*
|
|
2979
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable)
|
|
2980
|
+
*/
|
|
2451
2981
|
get writable(): WritableStream<I>;
|
|
2452
2982
|
}
|
|
2453
2983
|
export declare class FixedLengthStream extends IdentityTransformStream {
|
|
@@ -2468,21 +2998,33 @@ export interface IdentityTransformStreamQueuingStrategy {
|
|
|
2468
2998
|
export interface ReadableStreamValuesOptions {
|
|
2469
2999
|
preventCancel?: boolean;
|
|
2470
3000
|
}
|
|
2471
|
-
|
|
3001
|
+
/**
|
|
3002
|
+
* The **`CompressionStream`** interface of the Compression Streams API is an API for compressing a stream of data.
|
|
3003
|
+
*
|
|
3004
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
|
|
3005
|
+
*/
|
|
2472
3006
|
export declare class CompressionStream extends TransformStream<
|
|
2473
3007
|
ArrayBuffer | ArrayBufferView,
|
|
2474
3008
|
Uint8Array
|
|
2475
3009
|
> {
|
|
2476
3010
|
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
2477
3011
|
}
|
|
2478
|
-
|
|
3012
|
+
/**
|
|
3013
|
+
* The **`DecompressionStream`** interface of the Compression Streams API is an API for decompressing a stream of data.
|
|
3014
|
+
*
|
|
3015
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
|
|
3016
|
+
*/
|
|
2479
3017
|
export declare class DecompressionStream extends TransformStream<
|
|
2480
3018
|
ArrayBuffer | ArrayBufferView,
|
|
2481
3019
|
Uint8Array
|
|
2482
3020
|
> {
|
|
2483
3021
|
constructor(format: "gzip" | "deflate" | "deflate-raw");
|
|
2484
3022
|
}
|
|
2485
|
-
|
|
3023
|
+
/**
|
|
3024
|
+
* The **`TextEncoderStream`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding.
|
|
3025
|
+
*
|
|
3026
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
|
|
3027
|
+
*/
|
|
2486
3028
|
export declare class TextEncoderStream extends TransformStream<
|
|
2487
3029
|
string,
|
|
2488
3030
|
Uint8Array
|
|
@@ -2490,7 +3032,11 @@ export declare class TextEncoderStream extends TransformStream<
|
|
|
2490
3032
|
constructor();
|
|
2491
3033
|
get encoding(): string;
|
|
2492
3034
|
}
|
|
2493
|
-
|
|
3035
|
+
/**
|
|
3036
|
+
* 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.
|
|
3037
|
+
*
|
|
3038
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)
|
|
3039
|
+
*/
|
|
2494
3040
|
export declare class TextDecoderStream extends TransformStream<
|
|
2495
3041
|
ArrayBuffer | ArrayBufferView,
|
|
2496
3042
|
string
|
|
@@ -2505,7 +3051,7 @@ export interface TextDecoderStreamTextDecoderStreamInit {
|
|
|
2505
3051
|
ignoreBOM?: boolean;
|
|
2506
3052
|
}
|
|
2507
3053
|
/**
|
|
2508
|
-
*
|
|
3054
|
+
* The **`ByteLengthQueuingStrategy`** interface of the Streams API provides a built-in byte length queuing strategy that can be used when constructing streams.
|
|
2509
3055
|
*
|
|
2510
3056
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy)
|
|
2511
3057
|
*/
|
|
@@ -2513,19 +3059,27 @@ export declare class ByteLengthQueuingStrategy
|
|
|
2513
3059
|
implements QueuingStrategy<ArrayBufferView>
|
|
2514
3060
|
{
|
|
2515
3061
|
constructor(init: QueuingStrategyInit);
|
|
2516
|
-
|
|
3062
|
+
/**
|
|
3063
|
+
* The read-only **`ByteLengthQueuingStrategy.highWaterMark`** property returns the total number of bytes that can be contained in the internal queue before backpressure is applied.
|
|
3064
|
+
*
|
|
3065
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark)
|
|
3066
|
+
*/
|
|
2517
3067
|
get highWaterMark(): number;
|
|
2518
3068
|
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */
|
|
2519
3069
|
get size(): (chunk?: any) => number;
|
|
2520
3070
|
}
|
|
2521
3071
|
/**
|
|
2522
|
-
*
|
|
3072
|
+
* The **`CountQueuingStrategy`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams.
|
|
2523
3073
|
*
|
|
2524
3074
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy)
|
|
2525
3075
|
*/
|
|
2526
3076
|
export declare class CountQueuingStrategy implements QueuingStrategy {
|
|
2527
3077
|
constructor(init: QueuingStrategyInit);
|
|
2528
|
-
|
|
3078
|
+
/**
|
|
3079
|
+
* The read-only **`CountQueuingStrategy.highWaterMark`** property returns the total number of chunks that can be contained in the internal queue before backpressure is applied.
|
|
3080
|
+
*
|
|
3081
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark)
|
|
3082
|
+
*/
|
|
2529
3083
|
get highWaterMark(): number;
|
|
2530
3084
|
/* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */
|
|
2531
3085
|
get size(): (chunk?: any) => number;
|
|
@@ -2658,113 +3212,233 @@ export interface UnsafeTraceMetrics {
|
|
|
2658
3212
|
fromTrace(item: TraceItem): TraceMetrics;
|
|
2659
3213
|
}
|
|
2660
3214
|
/**
|
|
2661
|
-
* The URL
|
|
3215
|
+
* The **`URL`** interface is used to parse, construct, normalize, and encode URL.
|
|
2662
3216
|
*
|
|
2663
3217
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL)
|
|
2664
3218
|
*/
|
|
2665
3219
|
export declare class URL {
|
|
2666
3220
|
constructor(url: string | URL, base?: string | URL);
|
|
2667
|
-
|
|
3221
|
+
/**
|
|
3222
|
+
* The **`origin`** read-only property of the URL interface returns a string containing the Unicode serialization of the origin of the represented URL.
|
|
3223
|
+
*
|
|
3224
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin)
|
|
3225
|
+
*/
|
|
2668
3226
|
get origin(): 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
|
get href(): string;
|
|
2671
|
-
|
|
3233
|
+
/**
|
|
3234
|
+
* The **`href`** property of the URL interface is a string containing the whole URL.
|
|
3235
|
+
*
|
|
3236
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href)
|
|
3237
|
+
*/
|
|
2672
3238
|
set href(value: 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
|
get protocol(): string;
|
|
2675
|
-
|
|
3245
|
+
/**
|
|
3246
|
+
* The **`protocol`** property of the URL interface is a string containing the protocol or scheme of the URL, including the final `':'`.
|
|
3247
|
+
*
|
|
3248
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol)
|
|
3249
|
+
*/
|
|
2676
3250
|
set protocol(value: 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
|
get username(): string;
|
|
2679
|
-
|
|
3257
|
+
/**
|
|
3258
|
+
* The **`username`** property of the URL interface is a string containing the username component of the URL.
|
|
3259
|
+
*
|
|
3260
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username)
|
|
3261
|
+
*/
|
|
2680
3262
|
set username(value: 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
|
get password(): string;
|
|
2683
|
-
|
|
3269
|
+
/**
|
|
3270
|
+
* The **`password`** property of the URL interface is a string containing the password component of the URL.
|
|
3271
|
+
*
|
|
3272
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password)
|
|
3273
|
+
*/
|
|
2684
3274
|
set password(value: 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
|
get host(): string;
|
|
2687
|
-
|
|
3281
|
+
/**
|
|
3282
|
+
* 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.
|
|
3283
|
+
*
|
|
3284
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host)
|
|
3285
|
+
*/
|
|
2688
3286
|
set host(value: 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
|
get hostname(): string;
|
|
2691
|
-
|
|
3293
|
+
/**
|
|
3294
|
+
* The **`hostname`** property of the URL interface is a string containing either the domain name or IP address of the URL.
|
|
3295
|
+
*
|
|
3296
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname)
|
|
3297
|
+
*/
|
|
2692
3298
|
set hostname(value: 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
|
get port(): string;
|
|
2695
|
-
|
|
3305
|
+
/**
|
|
3306
|
+
* The **`port`** property of the URL interface is a string containing the port number of the URL.
|
|
3307
|
+
*
|
|
3308
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port)
|
|
3309
|
+
*/
|
|
2696
3310
|
set port(value: 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
|
get pathname(): string;
|
|
2699
|
-
|
|
3317
|
+
/**
|
|
3318
|
+
* The **`pathname`** property of the URL interface represents a location in a hierarchical structure.
|
|
3319
|
+
*
|
|
3320
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname)
|
|
3321
|
+
*/
|
|
2700
3322
|
set pathname(value: 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
|
get search(): string;
|
|
2703
|
-
|
|
3329
|
+
/**
|
|
3330
|
+
* 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.
|
|
3331
|
+
*
|
|
3332
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search)
|
|
3333
|
+
*/
|
|
2704
3334
|
set search(value: 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
|
get hash(): string;
|
|
2707
|
-
|
|
3341
|
+
/**
|
|
3342
|
+
* The **`hash`** property of the URL interface is a string containing a `'#'` followed by the fragment identifier of the URL.
|
|
3343
|
+
*
|
|
3344
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash)
|
|
3345
|
+
*/
|
|
2708
3346
|
set hash(value: string);
|
|
2709
|
-
|
|
3347
|
+
/**
|
|
3348
|
+
* The **`searchParams`** read-only property of the access to the [MISSING: httpmethod('GET')] decoded query arguments contained in the URL.
|
|
3349
|
+
*
|
|
3350
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams)
|
|
3351
|
+
*/
|
|
2710
3352
|
get searchParams(): URLSearchParams;
|
|
2711
|
-
|
|
3353
|
+
/**
|
|
3354
|
+
* 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.
|
|
3355
|
+
*
|
|
3356
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON)
|
|
3357
|
+
*/
|
|
2712
3358
|
toJSON(): string;
|
|
2713
3359
|
/*function toString() { [native code] }*/
|
|
2714
3360
|
toString(): string;
|
|
2715
|
-
|
|
3361
|
+
/**
|
|
3362
|
+
* 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.
|
|
3363
|
+
*
|
|
3364
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static)
|
|
3365
|
+
*/
|
|
2716
3366
|
static canParse(url: string, base?: string): boolean;
|
|
2717
|
-
|
|
3367
|
+
/**
|
|
3368
|
+
* The **`URL.parse()`** static method of the URL interface returns a newly created URL object representing the URL defined by the parameters.
|
|
3369
|
+
*
|
|
3370
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static)
|
|
3371
|
+
*/
|
|
2718
3372
|
static parse(url: string, base?: string): URL | null;
|
|
2719
|
-
|
|
3373
|
+
/**
|
|
3374
|
+
* The **`createObjectURL()`** static method of the URL interface creates a string containing a URL representing the object given in the parameter.
|
|
3375
|
+
*
|
|
3376
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static)
|
|
3377
|
+
*/
|
|
2720
3378
|
static createObjectURL(object: File | Blob): string;
|
|
2721
|
-
|
|
3379
|
+
/**
|
|
3380
|
+
* 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.
|
|
3381
|
+
*
|
|
3382
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static)
|
|
3383
|
+
*/
|
|
2722
3384
|
static revokeObjectURL(object_url: string): void;
|
|
2723
3385
|
}
|
|
2724
|
-
|
|
3386
|
+
/**
|
|
3387
|
+
* The **`URLSearchParams`** interface defines utility methods to work with the query string of a URL.
|
|
3388
|
+
*
|
|
3389
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams)
|
|
3390
|
+
*/
|
|
2725
3391
|
export declare class URLSearchParams {
|
|
2726
3392
|
constructor(
|
|
2727
3393
|
init?: Iterable<Iterable<string>> | Record<string, string> | string,
|
|
2728
3394
|
);
|
|
2729
|
-
|
|
3395
|
+
/**
|
|
3396
|
+
* The **`size`** read-only property of the URLSearchParams interface indicates the total number of search parameter entries.
|
|
3397
|
+
*
|
|
3398
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size)
|
|
3399
|
+
*/
|
|
2730
3400
|
get size(): number;
|
|
2731
3401
|
/**
|
|
2732
|
-
*
|
|
3402
|
+
* The **`append()`** method of the URLSearchParams interface appends a specified key/value pair as a new search parameter.
|
|
2733
3403
|
*
|
|
2734
3404
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/append)
|
|
2735
3405
|
*/
|
|
2736
3406
|
append(name: string, value: string): void;
|
|
2737
3407
|
/**
|
|
2738
|
-
*
|
|
3408
|
+
* The **`delete()`** method of the URLSearchParams interface deletes specified parameters and their associated value(s) from the list of all search parameters.
|
|
2739
3409
|
*
|
|
2740
3410
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete)
|
|
2741
3411
|
*/
|
|
2742
3412
|
delete(name: string, value?: string): void;
|
|
2743
3413
|
/**
|
|
2744
|
-
*
|
|
3414
|
+
* The **`get()`** method of the URLSearchParams interface returns the first value associated to the given search parameter.
|
|
2745
3415
|
*
|
|
2746
3416
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/get)
|
|
2747
3417
|
*/
|
|
2748
3418
|
get(name: string): string | null;
|
|
2749
3419
|
/**
|
|
2750
|
-
*
|
|
3420
|
+
* The **`getAll()`** method of the URLSearchParams interface returns all the values associated with a given search parameter as an array.
|
|
2751
3421
|
*
|
|
2752
3422
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll)
|
|
2753
3423
|
*/
|
|
2754
3424
|
getAll(name: string): string[];
|
|
2755
3425
|
/**
|
|
2756
|
-
*
|
|
3426
|
+
* The **`has()`** method of the URLSearchParams interface returns a boolean value that indicates whether the specified parameter is in the search parameters.
|
|
2757
3427
|
*
|
|
2758
3428
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)
|
|
2759
3429
|
*/
|
|
2760
3430
|
has(name: string, value?: string): boolean;
|
|
2761
3431
|
/**
|
|
2762
|
-
*
|
|
3432
|
+
* The **`set()`** method of the URLSearchParams interface sets the value associated with a given search parameter to the given value.
|
|
2763
3433
|
*
|
|
2764
3434
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set)
|
|
2765
3435
|
*/
|
|
2766
3436
|
set(name: string, value: string): void;
|
|
2767
|
-
|
|
3437
|
+
/**
|
|
3438
|
+
* The **`URLSearchParams.sort()`** method sorts all key/value pairs contained in this object in place and returns `undefined`.
|
|
3439
|
+
*
|
|
3440
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort)
|
|
3441
|
+
*/
|
|
2768
3442
|
sort(): void;
|
|
2769
3443
|
/* Returns an array of key, value pairs for every entry in the search params. */
|
|
2770
3444
|
entries(): IterableIterator<[key: string, value: string]>;
|
|
@@ -2781,7 +3455,7 @@ export declare class URLSearchParams {
|
|
|
2781
3455
|
) => void,
|
|
2782
3456
|
thisArg?: This,
|
|
2783
3457
|
): void;
|
|
2784
|
-
/*function toString() { [native code] }
|
|
3458
|
+
/*function toString() { [native code] }*/
|
|
2785
3459
|
toString(): string;
|
|
2786
3460
|
[Symbol.iterator](): IterableIterator<[key: string, value: string]>;
|
|
2787
3461
|
}
|
|
@@ -2835,26 +3509,26 @@ export interface URLPatternOptions {
|
|
|
2835
3509
|
ignoreCase?: boolean;
|
|
2836
3510
|
}
|
|
2837
3511
|
/**
|
|
2838
|
-
* A CloseEvent is sent to clients using WebSockets when the connection is closed.
|
|
3512
|
+
* A `CloseEvent` is sent to clients using WebSockets when the connection is closed.
|
|
2839
3513
|
*
|
|
2840
3514
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)
|
|
2841
3515
|
*/
|
|
2842
3516
|
export declare class CloseEvent extends Event {
|
|
2843
3517
|
constructor(type: string, initializer?: CloseEventInit);
|
|
2844
3518
|
/**
|
|
2845
|
-
*
|
|
3519
|
+
* The **`code`** read-only property of the CloseEvent interface returns a WebSocket connection close code indicating the reason the connection was closed.
|
|
2846
3520
|
*
|
|
2847
3521
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)
|
|
2848
3522
|
*/
|
|
2849
3523
|
readonly code: number;
|
|
2850
3524
|
/**
|
|
2851
|
-
*
|
|
3525
|
+
* The **`reason`** read-only property of the CloseEvent interface returns the WebSocket connection close reason the server gave for closing the connection; that is, a concise human-readable prose explanation for the closure.
|
|
2852
3526
|
*
|
|
2853
3527
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)
|
|
2854
3528
|
*/
|
|
2855
3529
|
readonly reason: string;
|
|
2856
3530
|
/**
|
|
2857
|
-
*
|
|
3531
|
+
* The **`wasClean`** read-only property of the CloseEvent interface returns `true` if the connection closed cleanly.
|
|
2858
3532
|
*
|
|
2859
3533
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean)
|
|
2860
3534
|
*/
|
|
@@ -2872,7 +3546,7 @@ export type WebSocketEventMap = {
|
|
|
2872
3546
|
error: ErrorEvent;
|
|
2873
3547
|
};
|
|
2874
3548
|
/**
|
|
2875
|
-
*
|
|
3549
|
+
* The `WebSocket` object provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection.
|
|
2876
3550
|
*
|
|
2877
3551
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
|
|
2878
3552
|
*/
|
|
@@ -2889,20 +3563,20 @@ export declare var WebSocket: {
|
|
|
2889
3563
|
readonly CLOSED: number;
|
|
2890
3564
|
};
|
|
2891
3565
|
/**
|
|
2892
|
-
*
|
|
3566
|
+
* The `WebSocket` object provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection.
|
|
2893
3567
|
*
|
|
2894
3568
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
|
|
2895
3569
|
*/
|
|
2896
3570
|
export interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
2897
3571
|
accept(): void;
|
|
2898
3572
|
/**
|
|
2899
|
-
*
|
|
3573
|
+
* The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.
|
|
2900
3574
|
*
|
|
2901
3575
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)
|
|
2902
3576
|
*/
|
|
2903
3577
|
send(message: (ArrayBuffer | ArrayBufferView) | string): void;
|
|
2904
3578
|
/**
|
|
2905
|
-
*
|
|
3579
|
+
* The **`WebSocket.close()`** method closes the already `CLOSED`, this method does nothing.
|
|
2906
3580
|
*
|
|
2907
3581
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close)
|
|
2908
3582
|
*/
|
|
@@ -2910,25 +3584,25 @@ export interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
|
2910
3584
|
serializeAttachment(attachment: any): void;
|
|
2911
3585
|
deserializeAttachment(): any | null;
|
|
2912
3586
|
/**
|
|
2913
|
-
*
|
|
3587
|
+
* The **`WebSocket.readyState`** read-only property returns the current state of the WebSocket connection.
|
|
2914
3588
|
*
|
|
2915
3589
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
|
|
2916
3590
|
*/
|
|
2917
3591
|
readyState: number;
|
|
2918
3592
|
/**
|
|
2919
|
-
*
|
|
3593
|
+
* The **`WebSocket.url`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
|
|
2920
3594
|
*
|
|
2921
3595
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/url)
|
|
2922
3596
|
*/
|
|
2923
3597
|
url: string | null;
|
|
2924
3598
|
/**
|
|
2925
|
-
*
|
|
3599
|
+
* The **`WebSocket.protocol`** read-only property returns the name of the sub-protocol the server selected; this will be one of the strings specified in the `protocols` parameter when creating the WebSocket object, or the empty string if no connection is established.
|
|
2926
3600
|
*
|
|
2927
3601
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol)
|
|
2928
3602
|
*/
|
|
2929
3603
|
protocol: string | null;
|
|
2930
3604
|
/**
|
|
2931
|
-
*
|
|
3605
|
+
* The **`WebSocket.extensions`** read-only property returns the extensions selected by the server.
|
|
2932
3606
|
*
|
|
2933
3607
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/extensions)
|
|
2934
3608
|
*/
|
|
@@ -2997,29 +3671,33 @@ export interface SocketInfo {
|
|
|
2997
3671
|
remoteAddress?: string;
|
|
2998
3672
|
localAddress?: string;
|
|
2999
3673
|
}
|
|
3000
|
-
|
|
3674
|
+
/**
|
|
3675
|
+
* The **`EventSource`** interface is web content's interface to server-sent events.
|
|
3676
|
+
*
|
|
3677
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource)
|
|
3678
|
+
*/
|
|
3001
3679
|
export declare class EventSource extends EventTarget {
|
|
3002
3680
|
constructor(url: string, init?: EventSourceEventSourceInit);
|
|
3003
3681
|
/**
|
|
3004
|
-
*
|
|
3682
|
+
* The **`close()`** method of the EventSource interface closes the connection, if one is made, and sets the ```js-nolint close() ``` None.
|
|
3005
3683
|
*
|
|
3006
3684
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close)
|
|
3007
3685
|
*/
|
|
3008
3686
|
close(): void;
|
|
3009
3687
|
/**
|
|
3010
|
-
*
|
|
3688
|
+
* The **`url`** read-only property of the URL of the source.
|
|
3011
3689
|
*
|
|
3012
3690
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url)
|
|
3013
3691
|
*/
|
|
3014
3692
|
get url(): string;
|
|
3015
3693
|
/**
|
|
3016
|
-
*
|
|
3694
|
+
* The **`withCredentials`** read-only property of the the `EventSource` object was instantiated with CORS credentials set.
|
|
3017
3695
|
*
|
|
3018
3696
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials)
|
|
3019
3697
|
*/
|
|
3020
3698
|
get withCredentials(): boolean;
|
|
3021
3699
|
/**
|
|
3022
|
-
*
|
|
3700
|
+
* The **`readyState`** read-only property of the connection.
|
|
3023
3701
|
*
|
|
3024
3702
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState)
|
|
3025
3703
|
*/
|
|
@@ -3052,22 +3730,22 @@ export interface Container {
|
|
|
3052
3730
|
destroy(error?: any): Promise<void>;
|
|
3053
3731
|
signal(signo: number): void;
|
|
3054
3732
|
getTcpPort(port: number): Fetcher;
|
|
3733
|
+
setInactivityTimeout(durationMs: number | bigint): Promise<void>;
|
|
3055
3734
|
}
|
|
3056
3735
|
export interface ContainerStartupOptions {
|
|
3057
3736
|
entrypoint?: string[];
|
|
3058
3737
|
enableInternet: boolean;
|
|
3059
3738
|
env?: Record<string, string>;
|
|
3739
|
+
hardTimeout?: number | bigint;
|
|
3060
3740
|
}
|
|
3061
3741
|
/**
|
|
3062
|
-
*
|
|
3742
|
+
* The **`MessagePort`** interface of the Channel Messaging API represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other.
|
|
3063
3743
|
*
|
|
3064
3744
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort)
|
|
3065
3745
|
*/
|
|
3066
3746
|
export interface MessagePort extends EventTarget {
|
|
3067
3747
|
/**
|
|
3068
|
-
*
|
|
3069
|
-
*
|
|
3070
|
-
* Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
|
|
3748
|
+
* The **`postMessage()`** method of the transfers ownership of objects to other browsing contexts.
|
|
3071
3749
|
*
|
|
3072
3750
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage)
|
|
3073
3751
|
*/
|
|
@@ -3076,13 +3754,13 @@ export interface MessagePort extends EventTarget {
|
|
|
3076
3754
|
options?: any[] | MessagePortPostMessageOptions,
|
|
3077
3755
|
): void;
|
|
3078
3756
|
/**
|
|
3079
|
-
*
|
|
3757
|
+
* The **`close()`** method of the MessagePort interface disconnects the port, so it is no longer active.
|
|
3080
3758
|
*
|
|
3081
3759
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close)
|
|
3082
3760
|
*/
|
|
3083
3761
|
close(): void;
|
|
3084
3762
|
/**
|
|
3085
|
-
*
|
|
3763
|
+
* The **`start()`** method of the MessagePort interface starts the sending of messages queued on the port.
|
|
3086
3764
|
*
|
|
3087
3765
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/start)
|
|
3088
3766
|
*/
|
|
@@ -3153,6 +3831,7 @@ export interface WorkerLoaderModule {
|
|
|
3153
3831
|
data?: ArrayBuffer;
|
|
3154
3832
|
json?: any;
|
|
3155
3833
|
py?: string;
|
|
3834
|
+
wasm?: ArrayBuffer;
|
|
3156
3835
|
}
|
|
3157
3836
|
export interface WorkerLoaderWorkerCode {
|
|
3158
3837
|
compatibilityDate: string;
|
|
@@ -6945,6 +7624,10 @@ export type AutoRagSearchRequest = {
|
|
|
6945
7624
|
ranker?: string;
|
|
6946
7625
|
score_threshold?: number;
|
|
6947
7626
|
};
|
|
7627
|
+
reranking?: {
|
|
7628
|
+
enabled?: boolean;
|
|
7629
|
+
model?: string;
|
|
7630
|
+
};
|
|
6948
7631
|
rewrite_query?: boolean;
|
|
6949
7632
|
};
|
|
6950
7633
|
export type AutoRagAiSearchRequest = AutoRagSearchRequest & {
|
|
@@ -8845,6 +9528,11 @@ export declare namespace CloudflareWorkersModule {
|
|
|
8845
9528
|
constructor(ctx: ExecutionContext, env: Env);
|
|
8846
9529
|
fetch?(request: Request): Response | Promise<Response>;
|
|
8847
9530
|
tail?(events: TraceItem[]): void | Promise<void>;
|
|
9531
|
+
tailStream?(
|
|
9532
|
+
event: TailStream.TailEvent<TailStream.Onset>,
|
|
9533
|
+
):
|
|
9534
|
+
| TailStream.TailEventHandlerType
|
|
9535
|
+
| Promise<TailStream.TailEventHandlerType>;
|
|
8848
9536
|
trace?(traces: TraceItem[]): void | Promise<void>;
|
|
8849
9537
|
scheduled?(controller: ScheduledController): void | Promise<void>;
|
|
8850
9538
|
queue?(batch: MessageBatch<unknown>): void | Promise<void>;
|
|
@@ -9223,7 +9911,14 @@ export interface VectorizeError {
|
|
|
9223
9911
|
*
|
|
9224
9912
|
* This list is expected to grow as support for more operations are released.
|
|
9225
9913
|
*/
|
|
9226
|
-
export type VectorizeVectorMetadataFilterOp =
|
|
9914
|
+
export type VectorizeVectorMetadataFilterOp =
|
|
9915
|
+
| "$eq"
|
|
9916
|
+
| "$ne"
|
|
9917
|
+
| "$lt"
|
|
9918
|
+
| "$lte"
|
|
9919
|
+
| "$gt"
|
|
9920
|
+
| "$gte";
|
|
9921
|
+
export type VectorizeVectorMetadataFilterCollectionOp = "$in" | "$nin";
|
|
9227
9922
|
/**
|
|
9228
9923
|
* Filter criteria for vector metadata used to limit the retrieved query result set.
|
|
9229
9924
|
*/
|
|
@@ -9236,6 +9931,12 @@ export type VectorizeVectorMetadataFilter = {
|
|
|
9236
9931
|
VectorizeVectorMetadataValue,
|
|
9237
9932
|
string[]
|
|
9238
9933
|
> | null;
|
|
9934
|
+
}
|
|
9935
|
+
| {
|
|
9936
|
+
[Op in VectorizeVectorMetadataFilterCollectionOp]?: Exclude<
|
|
9937
|
+
VectorizeVectorMetadataValue,
|
|
9938
|
+
string[]
|
|
9939
|
+
>[];
|
|
9239
9940
|
};
|
|
9240
9941
|
};
|
|
9241
9942
|
/**
|