aiparking_api/node_modules/ow/dist/lib/predicates/weak-set.d.ts
2020-02-02 15:24:30 +07:00

20 lines
684 B
TypeScript

import { Predicate, Context } from './predicate';
export declare class WeakSetPredicate<T extends object = any> extends Predicate<WeakSet<T>> {
/**
* @hidden
*/
constructor(context?: Context<WeakSet<T>>);
/**
* Test a WeakSet to include all the provided items. The items are tested by identity, not structure.
*
* @param items The items that should be a item in the WeakSet.
*/
has(...items: T[]): this;
/**
* Test a WeakSet to include any of the provided items. The items are tested by identity, not structure.
*
* @param items The items that could be a item in the WeakSet.
*/
hasAny(...items: T[]): this;
}