import { AsyncIterableX } from '../../asynciterable/asynciterablex.js'; import { catchError as _catchError } from '../../asynciterable/operators/catcherror.js'; /** * @ignore */ export function catchProto( this: AsyncIterableX, handler: (error: any) => AsyncIterable | Promise> ): AsyncIterableX { return _catchError(handler)(this); } AsyncIterableX.prototype.catchError = catchProto; export declare namespace asynciterable { let catchError: typeof _catchError; } declare module '../../asynciterable/asynciterablex' { interface AsyncIterableX { catchError: typeof catchProto; } }