mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-29 12:40:34 +08:00
jQuery.validation: Gave definition to errorMap
This commit is contained in:
1 parent
925a1282a8
commit
da1982687c
2 files changed
+9
-4
No files matched your search
+7
-2
@@ -28,7 +28,7 @@ interface ValidationOptions
|
||||
onkeyup?: boolean;
|
||||
onsubmit?: boolean;
|
||||
rules?: Object;
|
||||
showErrors?: (errorMap: Object, errorList: ErrorListItem[]) => void;
|
||||
showErrors?: (errorMap: ErrorDictionary, errorList: ErrorListItem[]) => void;
|
||||
submitHandler?: (form: HTMLFormElement) => void;
|
||||
success?: any;
|
||||
unhighlight?: (element: HTMLElement, errorClass: string, validClass: string) => void;
|
||||
@@ -36,6 +36,11 @@ interface ValidationOptions
|
||||
wrapper?: string;
|
||||
}
|
||||
|
||||
interface ErrorDictionary
|
||||
{
|
||||
[name: string]: string;
|
||||
}
|
||||
|
||||
interface ErrorListItem
|
||||
{
|
||||
message: string;
|
||||
@@ -59,7 +64,7 @@ interface Validator
|
||||
valid(): boolean;
|
||||
size(): number;
|
||||
|
||||
errorMap: Object;
|
||||
errorMap: ErrorDictionary;
|
||||
errorList: ErrorListItem[];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user