UNPKG

394 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*/
11export default function test<T>(value: T, label: string | Function, predicate: BasePredicate<T>, stack: string): void;