Type Alias: Validator<M, V>
Validator<
M,V> = (model,prop,value) =>boolean|void
Defined in: src/types.ts:32
Refuses value by throwing (the error reaches the caller as is) or by returning false (a ValidationError, code validator).
Type Parameters
M
M extends ActiveModel = ActiveModel
V
V = any
Parameters
model
M
prop
string
value
V
Returns
boolean | void