Skip to content

IValidatable

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

Represents a validatable object.

Extends IReadOnlyValidatable<TValidationError>.

interface IValidatable<TValidationError = string>
    extends IReadOnlyValidatable<TValidationError>

Source reference: src/validation/IValidatable.ts:7.

Generic Parameters

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

    Default value: string.

Properties

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

Implementations

Clone this wiki locally