import { IMapFunction } from '../../../../../../observer/pipes/built-in/map/map-function.type'; import { IObservable } from '../../../../../type/observable.type'; import { IObservablePipe } from '../../../../type/observable-pipe.type'; import { mapObservable } from './map-observable'; export function mapObservablePipe( mapFunction: IMapFunction, ): IObservablePipe { return (subscribe: IObservable): IObservable => { return mapObservable(subscribe, mapFunction); }; }