export class FormItemRuleWithoutValidator { regex?: RegExp required?: boolean message!: string; [key: string]: any; } export interface FormItemRule extends FormItemRuleWithoutValidator { validator?: ( value: any, ruleCfg: FormItemRuleWithoutValidator ) => boolean | Promise | Promise | Promise | Promise } export type FormItemLabelPosition = 'left' | 'right' | 'top' export type FormItemStarPosition = 'left' | 'right'