@epikodelabs/streamix / src/public-api / PipeResult
Type Alias: PipeResult<T, Ops>
PipeResult<
T,Ops> =Opsextends [] ?Atom<T> :Opsextends [Operator<T, infer A>,...(infer Rest)] ?RestextendsOperator<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.