Skip to content

Validatable

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

Represents a base implementation for a validatable

Extends ViewModel.
Implements IValidatable<TValidationError>.

class Validatable<TValidationError = string>
    extends ViewModel
    implements IValidatable<TValidationError>

Source reference: src/validation/Validatable.ts:8.

Generic Parameters

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

    Default value: string.

Constructors

Properties

  • error - Gets or sets the error message when the object is invalid.
  • isInvalid - A flag indicating whether the object is invalid.
  • isValid - A flag indicating whether the object is valid.
  • inherited propertiesChanged - An event that is raised when one or more properties may have changed.

Inheritance Hierarchy

Clone this wiki locally