@workers-community/workers-types 4.20251224.0 → 4.20251228.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.
Files changed (3) hide show
  1. package/index.d.ts +3 -3
  2. package/index.ts +3 -3
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -2535,6 +2535,8 @@ interface Transformer<I = any, O = any> {
2535
2535
  expectedLength?: number;
2536
2536
  }
2537
2537
  interface StreamPipeOptions {
2538
+ preventAbort?: boolean;
2539
+ preventCancel?: boolean;
2538
2540
  /**
2539
2541
  * 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.
2540
2542
  *
@@ -2553,8 +2555,6 @@ interface StreamPipeOptions {
2553
2555
  * 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.
2554
2556
  */
2555
2557
  preventClose?: boolean;
2556
- preventAbort?: boolean;
2557
- preventCancel?: boolean;
2558
2558
  signal?: AbortSignal;
2559
2559
  }
2560
2560
  type ReadableStreamReadResult<R = any> =
@@ -2847,13 +2847,13 @@ declare abstract class TransformStreamDefaultController<O = any> {
2847
2847
  terminate(): void;
2848
2848
  }
2849
2849
  interface ReadableWritablePair<R = any, W = any> {
2850
+ readable: ReadableStream<R>;
2850
2851
  /**
2851
2852
  * 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.
2852
2853
  *
2853
2854
  * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
2854
2855
  */
2855
2856
  writable: WritableStream<W>;
2856
- readable: ReadableStream<R>;
2857
2857
  }
2858
2858
  /**
2859
2859
  * The **`WritableStream`** interface of the Streams API provides a standard abstraction for writing streaming data to a destination, known as a sink.
package/index.ts CHANGED
@@ -2543,6 +2543,8 @@ export interface Transformer<I = any, O = any> {
2543
2543
  expectedLength?: number;
2544
2544
  }
2545
2545
  export interface StreamPipeOptions {
2546
+ preventAbort?: boolean;
2547
+ preventCancel?: boolean;
2546
2548
  /**
2547
2549
  * 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.
2548
2550
  *
@@ -2561,8 +2563,6 @@ export interface StreamPipeOptions {
2561
2563
  * 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.
2562
2564
  */
2563
2565
  preventClose?: boolean;
2564
- preventAbort?: boolean;
2565
- preventCancel?: boolean;
2566
2566
  signal?: AbortSignal;
2567
2567
  }
2568
2568
  export type ReadableStreamReadResult<R = any> =
@@ -2855,13 +2855,13 @@ export declare abstract class TransformStreamDefaultController<O = any> {
2855
2855
  terminate(): void;
2856
2856
  }
2857
2857
  export interface ReadableWritablePair<R = any, W = any> {
2858
+ readable: ReadableStream<R>;
2858
2859
  /**
2859
2860
  * 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.
2860
2861
  *
2861
2862
  * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
2862
2863
  */
2863
2864
  writable: WritableStream<W>;
2864
- readable: ReadableStream<R>;
2865
2865
  }
2866
2866
  /**
2867
2867
  * The **`WritableStream`** interface of the Streams API provides a standard abstraction for writing streaming data to a destination, known as a sink.
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "author": "Workers Community",
9
9
  "license": "MIT OR Apache-2.0",
10
- "version": "4.20251224.0",
10
+ "version": "4.20251228.0",
11
11
  "exports": {
12
12
  ".": {
13
13
  "types": "./index.d.ts",