IReadOnlyValidatable - Andrei15193/react-model-view-viewmodel GitHub Wiki

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

⚠️ **GitHub.com Fallback** ⚠️