Made the signature of INgModelController.$validators more precise and

corrected the return type of $asyncValidators

Tests included.
This commit is contained in:
Bill Chen
2015-06-09 17:21:58 +01:00
parent 43861a1703
commit 8c64199797
2 changed files with 29 additions and 3 deletions
+2 -2
View File
@@ -524,11 +524,11 @@ declare module angular {
}
interface IModelValidators {
[index: string]: (...args: any[]) => boolean;
[index: string]: (modelValue: any, viewValue: string) => boolean;
}
interface IAsyncModelValidators {
[index: string]: (...args: any[]) => IPromise<boolean>;
[index: string]: (modelValue: any, viewValue: string) => IPromise<any>;
}
interface IModelParser {