Skip to content
Type

ReadableStreamSourceOptions ​

Options for ReadableStreamSource.

ts
type ReadableStreamSourceOptions = {
	maxCacheSize?: number;
	handleUnhandledError?: (error: unknown) => unknown;
};

Used by ​

Properties ​

maxCacheSize ​

ts
maxCacheSize?: number;

The maximum number of bytes the cache is allowed to hold in memory. Defaults to 32 MiB.

handleUnhandledError ​

ts
handleUnhandledError?: (error: unknown) => unknown;

Handles errors that occur while no read is pending. By default, these become unhandled rejections.

Released under the Mozilla Public License 2.0.