amis-rpc-design/node_modules/rc-field-form/es/utils/validateUtil.d.ts

7 lines
488 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
import type { InternalNamePath, InternalValidateOptions, RuleObject, StoreValue, RuleError } 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: InternalValidateOptions, validateFirst: boolean | 'parallel', messageVariables?: Record<string, string>): Promise<RuleError[]>;