UNPKG

472 BTypeScriptView Raw
1import { BasePredicate } from './predicates/base-predicate';
2/**
3Validate the value against the provided predicate.
4
5@hidden
6
7@param value - Value to test.
8@param label - Label which should be used in error messages.
9@param predicate - Predicate to test to value against.
10@param idLabel - If true, the label is a variable or type. Default: true.
11*/
12export default function test<T>(value: T, label: string | Function, predicate: BasePredicate<T>, idLabel?: boolean): void;