Musique/node_modules/ow/dist/test.d.ts

13 lines
472 B
TypeScript
Raw Permalink Normal View History

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;