IObjectValidator.add - Andrei15193/react-model-view-viewmodel GitHub Wiki

Configures the given validators and validates the target afterwards.

add(
  ...validators: readonly (IValidator<TValidatable, TValidationError> | ValidatorCallback<TValidatable, TValidationError>)[]
): this

Source reference: src/validation/objectValidator/IObjectValidator.ts:28.

Parameters

Returns: this

Returns the current object validator.

⚠️ **GitHub.com Fallback** ⚠️