validatorWithMessage

function validatorWithMessage<T>(
   validator, 
   message, 
   sub?): ValidatorWithMessage

Type parameters

Type parameter
T

Parameters

ParameterType
validator(x) => x is T
messagestring
sub?ValidatorWithMessage

Returns

ValidatorWithMessage