11import { EventEmitter } from '@angular/core' ;
22
33import { Config } from '../config/config' ;
4- import { NavOptions } from './nav-util' ;
4+ import { NavOptions , TransitionDoneFn } from './nav-util' ;
55import { Page } from './nav-util' ;
66import { ViewController } from './view-controller' ;
77import { NavigationContainer } from './navigation-container' ;
@@ -420,7 +420,7 @@ export abstract class NavController implements NavigationContainer {
420420 * @param {object } [opts={}] Nav options to go with this transition.
421421 * @returns {Promise } Returns a promise which is resolved when the transition has completed.
422422 */
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 > ;
424424
425425 /**
426426 * 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 {
433433 * @param {object } [opts={}] Nav options to go with this transition.
434434 * @returns {Promise } Returns a promise which is resolved when the transition has completed.
435435 */
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 > ;
437437
438438 /**
439439 * Inserts an array of components into the nav stack at the specified index.
@@ -445,7 +445,7 @@ export abstract class NavController implements NavigationContainer {
445445 * @param {object } [opts={}] Nav options to go with this transition.
446446 * @returns {Promise } Returns a promise which is resolved when the transition has completed.
447447 */
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 > ;
449449
450450 /**
451451 * Call to navigate back from a current component. Similar to `push()`, you
@@ -454,15 +454,15 @@ export abstract class NavController implements NavigationContainer {
454454 * @param {object } [opts={}] Nav options to go with this transition.
455455 * @returns {Promise } Returns a promise which is resolved when the transition has completed.
456456 */
457- abstract pop ( opts ?: NavOptions , done ?: Function ) : Promise < any > ;
457+ abstract pop ( opts ?: NavOptions , done ?: TransitionDoneFn ) : Promise < any > ;
458458
459459 /**
460460 * Navigate back to the root of the stack, no matter how far back that is.
461461 *
462462 * @param {object } [opts={}] Nav options to go with this transition.
463463 * @returns {Promise } Returns a promise which is resolved when the transition has completed.
464464 */
465- abstract popToRoot ( opts ?: NavOptions , done ?: Function ) : Promise < any > ;
465+ abstract popToRoot ( opts ?: NavOptions , done ?: TransitionDoneFn ) : Promise < any > ;
466466
467467 /**
468468 * @hidden
@@ -479,7 +479,7 @@ export abstract class NavController implements NavigationContainer {
479479 * @param {object } [opts={}] Nav options to go with this transition.
480480 * @returns {Promise } Returns a promise which is resolved when the transition has completed.
481481 */
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 > ;
483483
484484 /**
485485 * @hidden
@@ -497,7 +497,7 @@ export abstract class NavController implements NavigationContainer {
497497 * @param {object } [opts={}] Any options you want to use pass to transtion.
498498 * @returns {Promise } Returns a promise which is resolved when the transition has completed.
499499 */
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 > ;
501501
502502 /**
503503 * Removes the specified view controller from the nav stack.
@@ -506,7 +506,7 @@ export abstract class NavController implements NavigationContainer {
506506 * @param {object } [opts={}] Any options you want to use pass to transtion.
507507 * @returns {Promise } Returns a promise which is resolved when the transition has completed.
508508 */
509- abstract removeView ( viewController : ViewController , opts ?: NavOptions , done ?: Function ) : Promise < any > ;
509+ abstract removeView ( viewController : ViewController , opts ?: NavOptions , done ?: TransitionDoneFn ) : Promise < any > ;
510510
511511 /**
512512 * Set the root for the current navigation stack.
@@ -516,7 +516,7 @@ export abstract class NavController implements NavigationContainer {
516516 * @param {Function } done Callback function on done.
517517 * @returns {Promise } Returns a promise which is resolved when the transition has completed.
518518 */
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 > ;
520520 abstract goToRoot ( options : NavOptions ) : Promise < any > ;
521521
522522 /**
@@ -529,7 +529,7 @@ export abstract class NavController implements NavigationContainer {
529529 * @param {Object } [opts={}] Nav options to go with this transition.
530530 * @returns {Promise } Returns a promise which is resolved when the transition has completed.
531531 */
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 > ;
533533
534534 /**
535535 * @param {number } index The index of the page to get.
0 commit comments