breeze-client / ValidationFn
Interface: ValidationFn()
Defined in: src/validation/validate.ts:52
Function called to validate an entity or property. Breeze always passes a context: the validator's own, with its settings, extended for each call with the entity and property being validated - so a validator reads its settings from it, as ctx.min.
It may return a promise, for a check that has to ask a server - see Validator.isAsync.
ValidationFn(
value,context):boolean|Promise<boolean>
Defined in: src/validation/validate.ts:53
Function called to validate an entity or property. Breeze always passes a context: the validator's own, with its settings, extended for each call with the entity and property being validated - so a validator reads its settings from it, as ctx.min.
It may return a promise, for a check that has to ask a server - see Validator.isAsync.
Parameters
value
any
context
Returns
boolean | Promise<boolean>