Merge pull request #5669 from use-strict/master

angular.d.ts - type safety for $controller
This commit is contained in:
Masahiro Wakame
2015-09-27 12:19:09 +09:00
2 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -1246,8 +1246,9 @@ declare module angular {
///////////////////////////////////////////////////////////////////////////
interface IControllerService {
// Although the documentation doesn't state this, locals are optional
(controllerConstructor: Function, locals?: any, bindToController?: any): any;
(controllerName: string, locals?: any, bindToController?: any): any;
<T>(controllerConstructor: new (...args: any[]) => T, locals?: any, bindToController?: any): T;
<T>(controllerConstructor: Function, locals?: any, bindToController?: any): T;
<T>(controllerName: string, locals?: any, bindToController?: any): T;
}
interface IControllerProvider extends IServiceProvider {