validateUtil.d.ts 488 B

123456
  1. import type { InternalNamePath, InternalValidateOptions, RuleObject, StoreValue, RuleError } 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: StoreValue, rules: RuleObject[], options: InternalValidateOptions, validateFirst: boolean | 'parallel', messageVariables?: Record<string, string>): Promise<RuleError[]>;