mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-25 10:12:52 +00:00
transitionTo() and reload() should return promises
http://angular-ui.github.io/ui-router/site/#/api/ui.router.state.$state
This commit is contained in:
parent
43f4fc592a
commit
720460e0e6
10
angular-ui-router/angular-ui-router.d.ts
vendored
10
angular-ui-router/angular-ui-router.d.ts
vendored
@ -229,10 +229,10 @@ declare module angular.ui {
|
||||
*/
|
||||
go(to: string, params?: {}, options?: IStateOptions): angular.IPromise<any>;
|
||||
go(to: IState, params?: {}, options?: IStateOptions): angular.IPromise<any>;
|
||||
transitionTo(state: string, params?: {}, updateLocation?: boolean): void;
|
||||
transitionTo(state: IState, params?: {}, updateLocation?: boolean): void;
|
||||
transitionTo(state: string, params?: {}, options?: IStateOptions): void;
|
||||
transitionTo(state: IState, params?: {}, options?: IStateOptions): void;
|
||||
transitionTo(state: string, params?: {}, updateLocation?: boolean): ng.IPromise<any>;
|
||||
transitionTo(state: IState, params?: {}, updateLocation?: boolean): ng.IPromise<any>;
|
||||
transitionTo(state: string, params?: {}, options?: IStateOptions): ng.IPromise<any>;
|
||||
transitionTo(state: IState, params?: {}, options?: IStateOptions): ng.IPromise<any>;
|
||||
includes(state: string, params?: {}): boolean;
|
||||
is(state:string, params?: {}): boolean;
|
||||
is(state: IState, params?: {}): boolean;
|
||||
@ -244,7 +244,7 @@ declare module angular.ui {
|
||||
current: IState;
|
||||
/** A param object, e.g. {sectionId: section.id)}, that you'd like to test against the current active state. */
|
||||
params: IStateParamsService;
|
||||
reload(): void;
|
||||
reload(): ng.IPromise<any>;
|
||||
|
||||
/** Currently pending transition. A promise that'll resolve or reject. */
|
||||
transition: ng.IPromise<{}>;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user