mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
fix ControllerService arguments
See https://github.com/angular/angular.js/blob/v1.5.0-beta.0/src/ng/controller.js#L86
This commit is contained in:
parent
220716d99a
commit
69d2fb94a9
6
angularjs/angular.d.ts
vendored
6
angularjs/angular.d.ts
vendored
@ -1239,9 +1239,9 @@ declare module angular {
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
interface IControllerService {
|
||||
// Although the documentation doesn't state this, locals are optional
|
||||
<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;
|
||||
<T>(controllerConstructor: new (...args: any[]) => T, locals?: any, later?: boolean, ident?: string): T;
|
||||
<T>(controllerConstructor: Function, locals?: any, later?: boolean, ident?: string): T;
|
||||
<T>(controllerName: string, locals?: any, later?: boolean, ident?: string): T;
|
||||
}
|
||||
|
||||
interface IControllerProvider extends IServiceProvider {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user