mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
change message type to React.ReactNode
This commit is contained in:
parent
6606aad391
commit
7c43bc553f
@ -40,7 +40,7 @@ export interface FormProps extends React.FormHTMLAttributes<HTMLFormElement> {
|
||||
|
||||
export type ValidationRule = {
|
||||
/** validation error message */
|
||||
message?: React.ReactChild;
|
||||
message?: React.ReactNode;
|
||||
/** built-in validation type, available options: https://github.com/yiminghe/async-validator#type */
|
||||
type?: string;
|
||||
/** indicates whether field is required */
|
||||
|
Loading…
Reference in New Issue
Block a user