Open JounQin opened 3 years ago
My current workaround:
import type { RuleObject } from 'antd/lib/form'
import type { StoreValue } from 'antd/lib/form/interface'
/**
* @see https://github.com/react-component/field-form/issues/330
*/
export type Validator = (
rule: RuleObject,
value: StoreValue,
callback: (error?: string) => void,
) => Promise<void> | void
I'd like to write custom validators: