Skip to content

Commit

Permalink
allow validator message as ReactChild
Browse files Browse the repository at this point in the history
  • Loading branch information
LucienLee authored and afc163 committed Jul 31, 2018
1 parent c849a73 commit 6606aad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/form/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export interface FormProps extends React.FormHTMLAttributes<HTMLFormElement> {

export type ValidationRule = {
/** validation error message */
message?: string;
message?: React.ReactChild;
/** built-in validation type, available options: https://github.com/yiminghe/async-validator#type */
type?: string;
/** indicates whether field is required */
Expand Down

0 comments on commit 6606aad

Please sign in to comment.