mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Tightened up ValidationOptions
Using a combination of the source code and the documentation at http://jqueryvalidation.org/validate/ I've tightened up the ValidationOptions. NB success remains as any because (AFAIK) it's not possible to model alternate overloads in an interface with TypeScript ( https://typescript.codeplex.com/workitem/1893 ).
This commit is contained in:
24
jquery.validation/jquery.validation.d.ts
vendored
24
jquery.validation/jquery.validation.d.ts
vendored
@@ -10,28 +10,28 @@ interface ValidationOptions
|
||||
{
|
||||
debug?: boolean;
|
||||
errorClass?: string;
|
||||
errorContainer?: any;
|
||||
errorContainer?: string;
|
||||
errorElement?: string;
|
||||
errorLabelContainer?: any;
|
||||
errorPlacement?: Function;
|
||||
errorLabelContainer?: string;
|
||||
errorPlacement?: (error: JQuery, element: JQuery) => void;
|
||||
focusCleanup?: boolean;
|
||||
focusInvalid?: boolean;
|
||||
groups?: any;
|
||||
highlight?: Function;
|
||||
ignore?: any;
|
||||
groups?: Object;
|
||||
highlight?: (element: HTMLElement, errorClass: string, validClass: string) => void;
|
||||
ignore?: string;
|
||||
ignoreTitle?: boolean;
|
||||
invalidHandler?: Function;
|
||||
messages?: any;
|
||||
invalidHandler?: (event: JQueryEventObject, validator: Validator) => void;
|
||||
messages?: Object;
|
||||
meta?: string;
|
||||
onclick?: boolean;
|
||||
onfocusout?: boolean;
|
||||
onkeyup?: boolean;
|
||||
onsubmit?: boolean;
|
||||
rules?: any;
|
||||
showErrors?: Function;
|
||||
submitHandler?: Function;
|
||||
rules?: Object;
|
||||
showErrors?: (errorMap: Object, errorList: ErrorListItem[]) => void;
|
||||
submitHandler?: (form: HTMLFormElement) => void;
|
||||
success?: any;
|
||||
unhighlight?: Function;
|
||||
unhighlight?: (element: HTMLElement, errorClass: string, validClass: string) => void;
|
||||
validClass?: string;
|
||||
wrapper?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user