UNPKG

744 BTypeScriptView Raw
1import { FindOptions } from './findoptions';
2/**
3 * Determines whether all elements of an async-iterable sequence satisfy 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>} options The options for a predicate for filtering, thisArg for binding and AbortSignal for cancellation.
9 * @returns {Promise<boolean>} An async-iterable sequence containing a single element determining whether all elements in the
10 * source sequence pass the test in the specified predicate.
11 */
12export declare function every<T>(source: AsyncIterable<T>, options: FindOptions<T>): Promise<boolean>;