Added $setValidity() method to IFormController.

IWindowService, IBrowserService and IRouteParamsService now all have a [key: string]: any declaration, so that code like $window['someProperty'] is allowed to compile.
This commit is contained in:
Roland Zwaga
2014-06-14 11:47:07 +02:00
parent 2bf1727b4e
commit 96e986ba0b
2 changed files with 10 additions and 3 deletions
+3 -1
View File
@@ -15,7 +15,9 @@ declare module ng.route {
// RouteParamsService
// see http://docs.angularjs.org/api/ngRoute.$routeParams
///////////////////////////////////////////////////////////////////////////
interface IRouteParamsService {}
interface IRouteParamsService {
[key: string]: any;
}
///////////////////////////////////////////////////////////////////////////
// RouteService
+7 -2
View File
@@ -203,6 +203,7 @@ declare module ng {
$error: any;
$addControl(control: ng.INgModelController): void;
$removeControl(control: ng.INgModelController): void;
$setValidity(control: ng.INgModelController): void;
$setDirty(): void;
$setPristine(): void;
}
@@ -302,13 +303,17 @@ declare module ng {
// WindowService
// see http://docs.angularjs.org/api/ng.$window
///////////////////////////////////////////////////////////////////////////
interface IWindowService extends Window {}
interface IWindowService extends Window {
[key: string]: any;
}
///////////////////////////////////////////////////////////////////////////
// BrowserService
// TODO undocumented, so we need to get it from the source code
///////////////////////////////////////////////////////////////////////////
interface IBrowserService {}
interface IBrowserService {
[key: string]: any;
}
///////////////////////////////////////////////////////////////////////////
// TimeoutService