IValidator.onAdd - Andrei15193/react-model-view-viewmodel GitHub Wiki
API / IValidator<TValidatable, TValidationError> / onAdd method
Optional, a method that gets called when the validator is configured for an object.
onAdd(
validatable: TValidatable
): void
Source reference: src/validation/IValidator.ts:15
.
-
validatable: TValidatable
The object which will be validated.