Skip to content

Commit

Permalink
Fix: Add function type for RuleItem.message
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel Pastor committed Aug 17, 2020
1 parent 8e17b30 commit 2cef559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.d.ts
Expand Up @@ -50,7 +50,7 @@ export interface RuleItem {
options?: ValidateOption;
defaultField?: RuleItem; // 'object' or 'array' containing validation rules
transform?: (value: any) => any;
message?: string;
message?: string | (() => any);
asyncValidator?: (
rule: Rules,
value: any,
Expand Down

0 comments on commit 2cef559

Please sign in to comment.