Repository URL to install this package:
Version:
0.14.1 ▾
|
/**
* @example
* 1. multiple form validation
* 2. data serialization on blur + button click
*/
export interface InputType {
identity: string
type: 'text'
name?: string
qa?: string
autocomplete?: string
labelText?: string
maxLength?: string | number
validationType?: string
/**
* what is this again even
*/
errorMessageFor?: string
value?: string
onBlur?: any
onFocus?: any
/**
* is computed getter
*/
isValid?: boolean
/**
* customization
*/
isLabelOnTop?: boolean
/**
* @deprecated
*/
className?: string
/**
* @todo @name invalid
*/
animatePlaceholder?: boolean
placeholderText?: string
isVisible?: boolean
}
export type InputsListType = InputType[]
export interface InputStateType {
// @todo
[key: string]: any
}
export type InputsStateListType = InputStateType[]
export interface AnyObj {
[key: string]: any
}
export interface FormStateType<InputList = AnyObj[]> {
toSerialized(): InputList
}