import { IterableX } from '../../iterable/iterablex.js'; import { catchError } from '../../iterable/operators/catcherror.js'; /** * @ignore */ export function catchErrorProto( this: IterableX, fn: (error: any) => Iterable ): IterableX { return catchError(fn)(this); } IterableX.prototype.catchError = catchErrorProto; declare module '../../iterable/iterablex' { interface IterableX { catchError: typeof catchErrorProto; } }