TerminalFieldState
interface exported by @mwillbanks/tuil-form.
interface
Public interface exported by @mwillbanks/tuil-form.
export interface TerminalFieldState<T> {
readonly name: string;
readonly value: T;
readonly initialValue: T;
readonly errors: readonly string[];
readonly touched: boolean;
readonly dirty: boolean;
readonly validating: boolean;
readonly disabled: boolean;
readonly readOnly: boolean;
readonly valid: boolean;
}Members
| Member | Type | Required | Description | Related types |
|---|---|---|---|---|
name | string | Yes | The name member uses the string contract. | — |
value | T | Yes | The value member uses the T contract. | — |
initialValue | T | Yes | The initialValue member uses the T contract. | — |
errors | readonly string[] | Yes | The errors member uses the readonly string[] contract. | — |
touched | boolean | Yes | The touched member uses the boolean contract. | — |
dirty | boolean | Yes | The dirty member uses the boolean contract. | — |
validating | boolean | Yes | The validating member uses the boolean contract. | — |
disabled | boolean | Yes | The disabled member uses the boolean contract. | — |
readOnly | boolean | Yes | The readOnly member uses the boolean contract. | — |
valid | boolean | Yes | The valid member uses the boolean contract. | — |
Parameters
This declaration has no public members.
Returns
This declaration does not return a value.
Throws
No thrown errors are documented for this declaration.
Related types
No package-local related types.
Source
View the secondary source reference