UNPKG

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