export type Validator = (value: any, ...args: any[]) => boolean | Promise; export type ValidateResult = boolean | string | void; export type ValidateFunc = (value: any, rule: Rule, options?: Object) => ValidateResult | Promise; export interface Rule { validate: string | ValidateFunc, rule?: string, // 临时指针 args?: any | Array | (() => any | Array | Promise>), required?: boolean, trigger?: string, message?: string, ignore?: boolean, muted?: boolean, [prop: string]: any, }