Skip to content

StreamSourceInstance

type StreamSourceInstance<T> =
| AsyncGenerator<T, unknown, unknown>
| AsyncIterator<T>
| AsyncIterable<T>
| Generator<T, unknown, unknown>
| Iterator<T>
| Iterable<T>;

Defined in: stream-source.ts:6

All stream source types we accept as instances.

Includes sync and async iterables, iterators, and generators.

Type Parameter
T