UNPKG

685 BTypeScriptView Raw
1import { Predicate, PredicateOptions } from './predicate';
2export declare class WeakSetPredicate<T extends object = object> extends Predicate<WeakSet<T>> {
3 /**
4 @hidden
5 */
6 constructor(options?: PredicateOptions);
7 /**
8 Test a WeakSet to include all the provided items. The items are tested by identity, not structure.
9
10 @param items - The items that should be a item in the WeakSet.
11 */
12 has(...items: readonly T[]): this;
13 /**
14 Test a WeakSet to include any of the provided items. The items are tested by identity, not structure.
15
16 @param items - The items that could be a item in the WeakSet.
17 */
18 hasAny(...items: readonly T[]): this;
19}