Skip to content

@epikodelabs/streamix


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

Type Alias: PipeResult<T, Ops>

PipeResult<T, Ops> = Ops extends [] ? Atom<T> : Ops extends [Operator<T, infer A>, ...(infer Rest)] ? Rest extends Operator<any, any>[] ? PipeResult<A, Rest> : Atom<any> : Atom<any>

Defined in: projects/libraries/streamix/src/lib/atoms/operator.ts:260

Recursive conditional type that computes the output type of a chain of operators.

Walks the operator array left-to-right, threading each operator's output type into the next operator's input type. Returns AtomBase<T> for an empty chain, and falls back to AtomBase<any> if type inference is exhausted.

Type Parameters

T

T

The initial stream value type.

Ops

Ops extends readonly Operator<any, any>[]

The tuple of operators to apply.

Released under the GNU AGPL v3 or later.