RockPaperScissors/node_modules/ow/dist/test.d.ts
2021-11-30 22:03:51 +01:00

12 lines
472 B
TypeScript

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