1
1
import { EventEmitter } from '@angular/core' ;
2
2
3
3
import { Config } from '../config/config' ;
4
- import { NavOptions } from './nav-util' ;
4
+ import { NavOptions , TransitionDoneFn } from './nav-util' ;
5
5
import { Page } from './nav-util' ;
6
6
import { ViewController } from './view-controller' ;
7
7
import { NavigationContainer } from './navigation-container' ;
@@ -420,7 +420,7 @@ export abstract class NavController implements NavigationContainer {
420
420
* @param {object } [opts={}] Nav options to go with this transition.
421
421
* @returns {Promise } Returns a promise which is resolved when the transition has completed.
422
422
*/
423
- abstract push ( page : Page | string , params ?: any , opts ?: NavOptions , done ?: Function ) : Promise < any > ;
423
+ abstract push ( page : Page | string , params ?: any , opts ?: NavOptions , done ?: TransitionDoneFn ) : Promise < any > ;
424
424
425
425
/**
426
426
* Inserts a component into the nav stack at the specified index. This is useful if
@@ -433,7 +433,7 @@ export abstract class NavController implements NavigationContainer {
433
433
* @param {object } [opts={}] Nav options to go with this transition.
434
434
* @returns {Promise } Returns a promise which is resolved when the transition has completed.
435
435
*/
436
- abstract insert ( insertIndex : number , page : Page | string , params ?: any , opts ?: NavOptions , done ?: Function ) : Promise < any > ;
436
+ abstract insert ( insertIndex : number , page : Page | string , params ?: any , opts ?: NavOptions , done ?: TransitionDoneFn ) : Promise < any > ;
437
437
438
438
/**
439
439
* Inserts an array of components into the nav stack at the specified index.
@@ -445,7 +445,7 @@ export abstract class NavController implements NavigationContainer {
445
445
* @param {object } [opts={}] Nav options to go with this transition.
446
446
* @returns {Promise } Returns a promise which is resolved when the transition has completed.
447
447
*/
448
- abstract insertPages ( insertIndex : number , insertPages : Array < { page : Page | string , params ?: any } > , opts ?: NavOptions , done ?: Function ) : Promise < any > ;
448
+ abstract insertPages ( insertIndex : number , insertPages : Array < { page : Page | string , params ?: any } > , opts ?: NavOptions , done ?: TransitionDoneFn ) : Promise < any > ;
449
449
450
450
/**
451
451
* Call to navigate back from a current component. Similar to `push()`, you
@@ -454,15 +454,15 @@ export abstract class NavController implements NavigationContainer {
454
454
* @param {object } [opts={}] Nav options to go with this transition.
455
455
* @returns {Promise } Returns a promise which is resolved when the transition has completed.
456
456
*/
457
- abstract pop ( opts ?: NavOptions , done ?: Function ) : Promise < any > ;
457
+ abstract pop ( opts ?: NavOptions , done ?: TransitionDoneFn ) : Promise < any > ;
458
458
459
459
/**
460
460
* Navigate back to the root of the stack, no matter how far back that is.
461
461
*
462
462
* @param {object } [opts={}] Nav options to go with this transition.
463
463
* @returns {Promise } Returns a promise which is resolved when the transition has completed.
464
464
*/
465
- abstract popToRoot ( opts ?: NavOptions , done ?: Function ) : Promise < any > ;
465
+ abstract popToRoot ( opts ?: NavOptions , done ?: TransitionDoneFn ) : Promise < any > ;
466
466
467
467
/**
468
468
* @hidden
@@ -479,7 +479,7 @@ export abstract class NavController implements NavigationContainer {
479
479
* @param {object } [opts={}] Nav options to go with this transition.
480
480
* @returns {Promise } Returns a promise which is resolved when the transition has completed.
481
481
*/
482
- abstract popTo ( page : Page | string | ViewController , params ?: any , opts ?: NavOptions , done ?: Function ) : Promise < any > ;
482
+ abstract popTo ( page : Page | string | ViewController , params ?: any , opts ?: NavOptions , done ?: TransitionDoneFn ) : Promise < any > ;
483
483
484
484
/**
485
485
* @hidden
@@ -497,7 +497,7 @@ export abstract class NavController implements NavigationContainer {
497
497
* @param {object } [opts={}] Any options you want to use pass to transtion.
498
498
* @returns {Promise } Returns a promise which is resolved when the transition has completed.
499
499
*/
500
- abstract remove ( startIndex : number , removeCount ?: number , opts ?: NavOptions , done ?: Function ) : Promise < any > ;
500
+ abstract remove ( startIndex : number , removeCount ?: number , opts ?: NavOptions , done ?: TransitionDoneFn ) : Promise < any > ;
501
501
502
502
/**
503
503
* Removes the specified view controller from the nav stack.
@@ -506,7 +506,7 @@ export abstract class NavController implements NavigationContainer {
506
506
* @param {object } [opts={}] Any options you want to use pass to transtion.
507
507
* @returns {Promise } Returns a promise which is resolved when the transition has completed.
508
508
*/
509
- abstract removeView ( viewController : ViewController , opts ?: NavOptions , done ?: Function ) : Promise < any > ;
509
+ abstract removeView ( viewController : ViewController , opts ?: NavOptions , done ?: TransitionDoneFn ) : Promise < any > ;
510
510
511
511
/**
512
512
* Set the root for the current navigation stack.
@@ -516,7 +516,7 @@ export abstract class NavController implements NavigationContainer {
516
516
* @param {Function } done Callback function on done.
517
517
* @returns {Promise } Returns a promise which is resolved when the transition has completed.
518
518
*/
519
- abstract setRoot ( pageOrViewCtrl : Page | string | ViewController , params ?: any , opts ?: NavOptions , done ?: Function ) : Promise < any > ;
519
+ abstract setRoot ( pageOrViewCtrl : Page | string | ViewController , params ?: any , opts ?: NavOptions , done ?: TransitionDoneFn ) : Promise < any > ;
520
520
abstract goToRoot ( options : NavOptions ) : Promise < any > ;
521
521
522
522
/**
@@ -529,7 +529,7 @@ export abstract class NavController implements NavigationContainer {
529
529
* @param {Object } [opts={}] Nav options to go with this transition.
530
530
* @returns {Promise } Returns a promise which is resolved when the transition has completed.
531
531
*/
532
- abstract setPages ( pages : ( { page : Page | string , params ?: any } | ViewController ) [ ] , opts ?: NavOptions , done ?: Function ) : Promise < any > ;
532
+ abstract setPages ( pages : ( { page : Page | string , params ?: any } | ViewController ) [ ] , opts ?: NavOptions , done ?: TransitionDoneFn ) : Promise < any > ;
533
533
534
534
/**
535
535
* @param {number } index The index of the page to get.
0 commit comments