mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 21:31:12 +08:00
Updated function params in ionic history service (#13936)
* Updated function params in ionic history service * updated test for ionic typings
This commit is contained in:
6
ionic/index.d.ts
vendored
6
ionic/index.d.ts
vendored
@@ -201,14 +201,14 @@ declare namespace ionic {
|
||||
interface IonicHistoryService {
|
||||
viewHistory(): any;
|
||||
|
||||
currentView(): any;
|
||||
currentView(view?: any): any;
|
||||
currentHistoryId(): string;
|
||||
currentTitle(val?: string): string;
|
||||
|
||||
backView(): any;
|
||||
backView(view?: any): any;
|
||||
backTitle(): string;
|
||||
|
||||
forwardView(): any;
|
||||
forwardView(view?: any): any;
|
||||
|
||||
currentStateName(): string;
|
||||
|
||||
|
||||
@@ -167,12 +167,15 @@ class IonicTestController {
|
||||
|
||||
var viewHistory = this.$ionicHistory.viewHistory();
|
||||
var currentView = this.$ionicHistory.currentView();
|
||||
this.$ionicHistory.currentView({viewId: 1});
|
||||
var currentHistoryId: string = this.$ionicHistory.currentHistoryId();
|
||||
this.$ionicHistory.currentTitle("currentTitle");
|
||||
var currentTitle: string = this.$ionicHistory.currentTitle();
|
||||
var backView = this.$ionicHistory.backView();
|
||||
this.$ionicHistory.backView({viewId: 1});
|
||||
var backTitle: string = this.$ionicHistory.backTitle();
|
||||
var forwardView = this.$ionicHistory.forwardView();
|
||||
this.$ionicHistory.forwardView({viewId: 1});
|
||||
var currentStateName: string = this.$ionicHistory.currentStateName();
|
||||
|
||||
this.$ionicHistory.goBack(5);
|
||||
|
||||
Reference in New Issue
Block a user