import { IScanFunction } from '../../../../../../observer/pipes/built-in/scan/scan-function.type'; import { IObservable } from '../../../../../type/observable.type'; import { IObservablePipe } from '../../../../type/observable-pipe.type'; import { scanObservable } from './scan-observable'; export function scanObservablePipe( scanFunction: IScanFunction, initialValue: GOut, ): IObservablePipe { return (subscribe: IObservable): IObservable => { return scanObservable(subscribe, scanFunction, initialValue); }; }