mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-30 11:14:27 +08:00
Merge pull request #5669 from use-strict/master
angular.d.ts - type safety for $controller
This commit is contained in:
Vendored
+3
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user