UNPKG

ow

Version:

Function argument validation for humans

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