Files
icehrm/web/node_modules/rc-field-form/lib/utils/validateUtil.d.ts
2020-05-20 18:47:29 +02:00

7 lines
440 B
TypeScript

import { InternalNamePath, ValidateOptions, RuleObject, StoreValue } from '../interface';
/**
* We use `async-validator` to validate the value.
* But only check one value in a time to avoid namePath validate issue.
*/
export declare function validateRules(namePath: InternalNamePath, value: StoreValue, rules: RuleObject[], options: ValidateOptions, validateFirst: boolean, messageVariables?: Record<string, string>): Promise<string[]>;