UNPKG

743 BTypeScriptView Raw
1import { FindOptions } from './findoptions';
2/**
3 * Determines whether any element of an async-iterable sequence satisfies a condition.
4 *
5 * @export
6 * @template T The type of the elements in the source sequence.
7 * @param {AsyncIterable<T>} source An async-iterable sequence whose elements to apply the predicate to.
8 * @param {FindOptions<T, S>} options The options which includes a required predicate, an optional
9 * thisArg for binding, and an abort signal for cancellation.
10 * @returns {Promise<boolean>} A promise with a boolean determining whether any elements in the source sequence
11 * pass the test in the specified predicate.
12 */
13export declare function some<T>(source: AsyncIterable<T>, options: FindOptions<T>): Promise<boolean>;