Made the signature of INgModelController.$validators more precise and

corrected the return type of $asyncValidators

Tests included.
This commit is contained in:
Bill Chen committed 2015-06-09 17:21:58 +01:00
1 parent 43861a1703
commit 8c64199797
2 files changed
+29 -3

No files matched your search

+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 {