Skip to content

IValidator.validate

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

The method validating a given object.

validate(
  object: TValidatable
): undefined | null | TValidationError

Source reference: src/validation/IValidator.ts:27.

Parameters

  • object: TValidatable
    The object to validate.

Returns: undefined | null | TValidationError

Returns a validation error if there are any issues; otherwise null or undefined.

Clone this wiki locally