Skip to content

IReadOnlyValidatable

Andrei Fangli edited this page Jun 4, 2021 · 1 revision
API / IReadOnlyValidatable interface

Represents a read-only interface for objects that can be validated.

export interface IReadOnlyValidatable

Properties

  • isValid: a flag indicating whether the field is valid. Generally, when there is no associated error message.
  • isInvalid: a flag indicating whether the field is invalid. Generally, when there is an associated error message.
  • error: an error message (or translation key) providing information as to why the field is invalid.
Clone this wiki locally