validateUtil.d.ts 453 B

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