import { AsyncIterableX } from '../../asynciterable/asynciterablex.js'; import { FilterAsyncIterable } from '../../asynciterable/operators/filter.js'; /** * @ignore */ export function filterProto( this: AsyncIterableX, predicate: (value: T, index: number, signal?: AbortSignal) => value is S, thisArg?: any ): AsyncIterableX; export function filterProto( this: AsyncIterableX, predicate: (value: T, index: number, signal?: AbortSignal) => boolean | Promise, thisArg?: any ): AsyncIterableX; export function filterProto( this: AsyncIterableX, predicate: (value: T, index: number, signal?: AbortSignal) => boolean | Promise, thisArg?: any ): AsyncIterableX { return new FilterAsyncIterable(this, predicate, thisArg); } AsyncIterableX.prototype.filter = filterProto; declare module '../../asynciterable/asynciterablex' { interface AsyncIterableX { filter: typeof filterProto; } }