Skip to content

@epikodelabs/streamix


@epikodelabs/streamix / src/public-api / isStreamLike

Function: isStreamLike() ​

isStreamLike<T>(value): value is Stream<T>

Defined in: projects/libraries/streamix/src/lib/abstractions/stream.ts:30

Type guard to check if a value is stream-like (has type and async iterator).

Type Parameters ​

T ​

T = unknown

Parameters ​

value ​

unknown

The value to check.

Returns ​

value is Stream<T>

True if the value is a Stream.

Released under the GNU AGPL v3 or later.