Created
October 23, 2019 23:03
-
-
Save guiseek/a20b35bdc11a4b2a9ff04c68e0c61672 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface ErrorMessages { | |
[k: string]: string; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface FormErrors { | |
required: (error: any) => string; | |
email: (error: any) => string; | |
min: ({ min, actual }: { | |
min: any; | |
actual: any; | |
}) => string; | |
max: ({ max, actual }: { | |
max: any; | |
actual: any; | |
}) => string; | |
minlength: ({ requiredLength, actualLength }: { | |
requiredLength: any; | |
actualLength: any; | |
}) => string; | |
maxlength: ({ requiredLength, actualLength }) => string; | |
pattern: ({ requiredPattern, actualValue }) => string; | |
[k: string]: any; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment