ix
Version:
The Interactive Extensions for JavaScript
19 lines (15 loc) • 512 B
text/typescript
import { AsyncIterableX } from '../../asynciterable/asynciterablex.js';
import { some } from '../../asynciterable/some.js';
import { FindOptions } from '../../asynciterable/findoptions.js';
/**
* @ignore
*/
export function someProto<T>(this: AsyncIterable<T>, options: FindOptions<T>): Promise<boolean> {
return some(this, options as any);
}
AsyncIterableX.prototype.some = someProto;
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
some: typeof someProto;
}
}