Skip to content

ObjectValidator.add

github-actions[bot] edited this page Nov 17, 2024 · 2 revisions

Configures the given validators and validates the target afterwards.

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

Source reference: src/validation/objectValidator/ObjectValidator.ts:113.

Parameters

Returns: this

Returns the current object validator.

Clone this wiki locally