UNPKG

515 BTypeScriptView Raw
1import type { BasePredicate } from '../predicates/base-predicate.js';
2/**
3Test all the values in the collection against a provided predicate.
4
5@hidden
6@param source Source collection to test.
7@param name The name to call the collection of values, such as `values` or `keys`.
8@param predicate Predicate to test every item in the source collection against.
9*/
10declare const ofType: <T>(source: IterableIterator<T> | Set<T> | T[], name: string, predicate: BasePredicate<T>) => boolean | string;
11export default ofType;