UNPKG

ow

Version:

Function argument validation for humans

14 lines (13 loc) 545 B
import type { Main } from '../index.js'; import { testSymbol, optionalSymbol, type BasePredicate } from './base-predicate.js'; import type { PredicateOptions } from './predicate.js'; /** @hidden */ export declare class AnyPredicate<T = unknown> implements BasePredicate<T> { private readonly predicates; private readonly options; [optionalSymbol]?: boolean; constructor(predicates: BasePredicate[], options?: PredicateOptions); [testSymbol](value: T, main: Main, label: string | Function, idLabel: boolean): asserts value; }