Skip to content

ValidatorCallback

github-actions[bot] edited this page Nov 17, 2024 · 2 revisions
API / ValidatorCallback<TValidatable, TValidationError> alias

Represents a callback which validates a given object.

type ValidatorCallback<TValidatable extends IReadOnlyValidatable<TValidationError>, TValidationError = string>
  = IValidator<TValidatable, TValidationError>["validate"];

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

Generic Parameters

Clone this wiki locally