UNPKG
overmind-forms
Version:
latest (0.0.4)
0.0.4
0.0.3
0.0.2
0.0.1
Forms implementation for overmind
github.com/garth/overmind-forms
garth/overmind-forms
overmind-forms
/
lib
/
formField.d.ts
9 lines
(8 loc)
•
271 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
export
interface
FormField
{
value
:
string
;
isPristine
:
boolean
;
isValid
:
boolean
;
showError
:
boolean
; }
export
declare
type
IsValid
=
(
value
:
string
) =>
boolean
;
export
declare
const
formField
:
(
value
?:
string
,
isValid
?:
boolean
|
IsValid
) =>
FormField
;