import { MonoTypeOperatorFunction } from '../../interfaces'; import { IterableX } from '../../iterable/iterablex'; import { CatchWithIterable } from '../catchwith'; export function catchWith( handler: (error: any) => Iterable ): MonoTypeOperatorFunction { return function catchWithOperatorFunction(source: Iterable): IterableX { return new CatchWithIterable(source, handler); }; }