Documents / @faasjs/react / validValues
Function: validValues()
validValues(
rules
,items
,values
,lang
):Promise
<Record
<string
,Error
>>
Parameters
• rules: FormRules
• items: FormItemProps
[]
• values: Record
<string
, any
>
• lang
• lang.number: string
= 'This field must be a number'
• lang.required: string
= 'This field is required'
• lang.string: string
= 'This field must be a string'
• lang.submit: string
= 'Submit'
Returns
Promise
<Record
<string
, Error
>>