mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Made the signature of INgModelController.$validators more precise and
corrected the return type of $asyncValidators Tests included.
This commit is contained in:
Vendored
+2
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user