change message type to React.ReactNode

This commit is contained in:
Lucien Lee 2018-07-31 12:38:19 +08:00 committed by 偏右
parent 6606aad391
commit 7c43bc553f

View File

@ -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 */