@lifaon/rx-js-light
Version:
Blazing fast Observables
11 lines (10 loc) • 1.06 kB
TypeScript
import { IInferPipeNowReturn } from '../../../../misc/functional/pipe/types/infer-pipe-now-return.type';
import { IPipeNowConstraint } from '../../../../misc/functional/pipe/types/pipe-now-constraint.type';
import { IGenericObservablePipe } from '../../../pipes/type/observable-pipe.type';
import { IGenericObservable } from '../../../type/observable.type';
export declare type IObservablePipeConstraint<// generics
GObservable extends IGenericObservable, GFunctions> = IPipeNowConstraint<GObservable, GFunctions> extends readonly IGenericObservablePipe[] ? IPipeNowConstraint<GObservable, GFunctions> : never;
export declare type IObservablePipeReturn<// generics
GObservable extends IGenericObservable, GFunctions extends readonly IGenericObservablePipe[]> = IInferPipeNowReturn<GObservable, GFunctions>;
export declare function pipeObservable<// generics
GObservable extends IGenericObservable, GFunctions extends IObservablePipeConstraint<GObservable, GFunctions>>(subscribe: GObservable, fns: GFunctions): IObservablePipeReturn<GObservable, GFunctions>;