Skip to content

IReadOnlyValidatable

github-actions[bot] edited this page Dec 3, 2024 · 3 revisions
API / IReadOnlyValidatable<TValidationError> interface

Represents a read-only validatable object.

interface IReadOnlyValidatable<TValidationError = string>

Source reference: src/validation/IReadOnlyValidatable.ts:5.

Generic Parameters

  • TValidationError - The concrete type for representing validation errors (strings, enums, numbers etc.).

    Default value: string.

Properties

  • readonly error - Gets the error message when the object is invalid.
  • readonly isInvalid - A flag indicating whether the object is invalid.
  • readonly isValid - A flag indicating whether the object is valid.

Implementations

Clone this wiki locally