mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
Added errorList / errorMap properties and valid / size / hideErrors functions with associated tests
This commit is contained in:
+12
@@ -36,6 +36,12 @@ interface ValidationOptions
|
||||
wrapper?: string;
|
||||
}
|
||||
|
||||
interface ErrorListItem
|
||||
{
|
||||
message: string;
|
||||
element: HTMLElement;
|
||||
}
|
||||
|
||||
interface Validator
|
||||
{
|
||||
addClassRules(name: string, rules: any): void;
|
||||
@@ -49,6 +55,12 @@ interface Validator
|
||||
setDefaults(defaults: ValidationOptions): void;
|
||||
settings: ValidationOptions;
|
||||
showErrors(errors: any): void;
|
||||
hideErrors(): void;
|
||||
valid(): boolean;
|
||||
size(): number;
|
||||
|
||||
errorMap: Object;
|
||||
errorList: ErrorListItem[];
|
||||
}
|
||||
|
||||
interface JQuery
|
||||
|
||||
Reference in New Issue
Block a user