From f9670413707dc6dcb01748f65ddee86f77d12c2b Mon Sep 17 00:00:00 2001 From: Viktor Zozulyak Date: Tue, 7 Apr 2015 00:09:28 +0300 Subject: [PATCH] Update angular-ui-router.d.ts This fixes references to interfaces defined in [angular.d.ts](https://github.com/borisyankov/DefinitelyTyped/blob/master/angularjs/angular.d.ts) --- angular-ui-router/angular-ui-router.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/angular-ui-router/angular-ui-router.d.ts b/angular-ui-router/angular-ui-router.d.ts index 0cf796832f..f5dfbeca51 100644 --- a/angular-ui-router/angular-ui-router.d.ts +++ b/angular-ui-router/angular-ui-router.d.ts @@ -62,7 +62,7 @@ declare module angular.ui { reloadOnSearch?: boolean; } - interface IStateProvider extends IServiceProvider { + interface IStateProvider extends ng.IServiceProvider { state(name:string, config:IState): IStateProvider; state(config:IState): IStateProvider; decorator(name?: string, decorator?: (state: IState, parent: Function) => any): any; @@ -81,7 +81,7 @@ declare module angular.ui { type(name: string, definition: any, definitionFn?: any): any; } - interface IUrlRouterProvider extends IServiceProvider { + interface IUrlRouterProvider extends ng.IServiceProvider { when(whenPath: RegExp, handler: Function): IUrlRouterProvider; when(whenPath: RegExp, handler: any[]): IUrlRouterProvider; when(whenPath: RegExp, toPath: string): IUrlRouterProvider; @@ -143,7 +143,7 @@ declare module angular.ui { * * @param options Options object. */ - go(to: string, params?: {}, options?: IStateOptions): IPromise; + go(to: string, params?: {}, options?: IStateOptions): ng.IPromise; transitionTo(state: string, params?: {}, updateLocation?: boolean): void; transitionTo(state: string, params?: {}, options?: IStateOptions): void; includes(state: string, params?: {}): boolean;