Skip to content

basalt / storage/src / StreamSource

Type Alias: StreamSource ​

> StreamSource = Readable | ReadableStream<Uint8Array> | AsyncIterable<Uint8Array | string>

Defined in: storage/src/driver.ts:26

Anything Disk.putStream accepts as an upload body: a Node Readable, a web ReadableStream, or any AsyncIterable of chunks. The Disk layer normalizes every one of them into a single Node Readable before the driver sees it — see StorageDriver.putStream.

Released under the MIT License.