You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Creates a new ByteLengthQueuingStrategy with the provided high water mark.
40
-
*
40
+
*
41
41
* Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.
* Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.
60
-
*
60
+
*
61
61
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
62
62
*/
63
63
writable: WritableStream<W>;
@@ -68,19 +68,19 @@ interface StreamPipeOptions {
68
68
preventCancel?: boolean;
69
69
/**
70
70
* Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
71
-
*
71
+
*
72
72
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
73
-
*
73
+
*
74
74
* Errors and closures of the source and destination streams propagate as follows:
75
-
*
75
+
*
76
76
* An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination.
77
-
*
77
+
*
78
78
* An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source.
79
-
*
79
+
*
80
80
* When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.
81
-
*
81
+
*
82
82
* If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.
83
-
*
83
+
*
84
84
* The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.
85
85
*/
86
86
preventClose?: boolean;
@@ -238,17 +238,17 @@ declare var Event: {
238
238
interfaceEventTarget{
239
239
/**
240
240
* Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
241
-
*
241
+
*
242
242
* 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.
243
-
*
243
+
*
244
244
* 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.
245
-
*
245
+
*
246
246
* 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.
247
-
*
247
+
*
248
248
* When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
249
-
*
249
+
*
250
250
* If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
251
-
*
251
+
*
252
252
* The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
* Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
316
-
*
316
+
*
317
317
* Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
0 commit comments