sparc - v1.0.1
Preparing search index...
utils/form/FormSchema.class
FormSchema
Class FormSchema<T, K>
Type Parameters
T
extends
Record
<
string
,
FormField
<
FormFieldType
>
>
K
extends
keyof
T
Index
Constructors
constructor
Properties
_
fields
Accessors
has
Untouched
Fields
is
Valid
Methods
focus
On
First
Invalid
get
parse
from
Keys
Constructors
constructor
new
FormSchema
<
T
extends
Record
<
string
,
FormField
<
FormFieldType
>
>
,
K
extends
string
|
number
|
symbol
,
>
(
fields
:
T
,
)
:
FormSchema
<
T
,
K
>
Type Parameters
T
extends
Record
<
string
,
FormField
<
FormFieldType
>
>
K
extends
string
|
number
|
symbol
Parameters
fields
:
T
Returns
FormSchema
<
T
,
K
>
Properties
Private
_
fields
_fields
:
T
Accessors
has
Untouched
Fields
get
hasUntouchedFields
()
:
boolean
Returns
boolean
is
Valid
get
isValid
()
:
boolean
Returns
boolean
Methods
focus
On
First
Invalid
focusOnFirstInvalid
()
:
void
Returns
void
get
get
(
key
:
K
)
:
T
[
K
]
Parameters
key
:
K
Returns
T
[
K
]
parse
parse
()
:
Record
<
string
,
FormFieldType
>
Returns
Record
<
string
,
FormFieldType
>
Static
from
Keys
fromKeys
<
const
K
extends
readonly
string
[]
>
(
fieldNames
:
K
,
)
:
FormSchema
<
{
[
P
in
string
]
:
FormField
<
FormFieldType
>
}
,
K
[
number
]
>
Type Parameters
const
K
extends
readonly
string
[]
Parameters
fieldNames
:
K
Returns
FormSchema
<
{
[
P
in
string
]
:
FormField
<
FormFieldType
>
}
,
K
[
number
]
>
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_
fields
Accessors
has
Untouched
Fields
is
Valid
Methods
focus
On
First
Invalid
get
parse
from
Keys
sparc - v1.0.1
Loading...