mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #5653 from dpsthree/issue-5652-fix-angular-ui-router
Added missing types, updated tests
This commit is contained in:
@@ -158,7 +158,9 @@ class UrlLocatorTestService implements IUrlLocatorTestService {
|
||||
|
||||
private stateServiceTest() {
|
||||
this.$state.go("myState");
|
||||
this.$state.go(this.$state.current);
|
||||
this.$state.transitionTo("myState");
|
||||
this.$state.transitionTo(this.$state.current);
|
||||
if (this.$state.includes("myState") === true) {
|
||||
//
|
||||
}
|
||||
|
||||
+3
@@ -228,8 +228,11 @@ declare module angular.ui {
|
||||
* @param options Options object.
|
||||
*/
|
||||
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;
|
||||
includes(state: string, params?: {}): boolean;
|
||||
is(state:string, params?: {}): boolean;
|
||||
is(state: IState, params?: {}): boolean;
|
||||
|
||||
Reference in New Issue
Block a user