Skip to content

IValidator.onAdd

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

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.

Parameters

  • validatable: TValidatable
    The object which will be validated.
Clone this wiki locally