refactor(all): avoid using export const enum (#16614)

* refactor(all): avoid using export const enum

fixes #16497

* add tslint
This commit is contained in:
Manu MA
2018-12-06 21:19:49 +01:00
committed by GitHub
parent 95c0b1bac7
commit 119e0c1fd2
24 changed files with 150 additions and 166 deletions

View File

@ -2795,7 +2795,7 @@ export namespace Components {
* Set the root for the current navigation stack.
*/
'setRoot': <T extends NavComponent>(component: T, componentProps?: ComponentProps<T> | null | undefined, opts?: NavOptions | null | undefined, done?: TransitionDoneFn | undefined) => Promise<boolean>;
'setRouteId': (id: string, params: { [key: string]: any; } | undefined, direction: number) => Promise<RouteWrite>;
'setRouteId': (id: string, params: { [key: string]: any; } | undefined, direction: RouterDirection) => Promise<RouteWrite>;
/**
* If the nav component should allow for swipe-to-go-back.
*/
@ -3626,7 +3626,7 @@ export namespace Components {
'delegate'?: FrameworkDelegate;
'getRouteId': () => Promise<RouteID | undefined>;
'mode': Mode;
'setRouteId': (id: string, params: { [key: string]: any; } | undefined, direction: number) => Promise<RouteWrite>;
'setRouteId': (id: string, params: { [key: string]: any; } | undefined, direction: RouterDirection) => Promise<RouteWrite>;
'swipeHandler'?: SwipeGestureHandler;
}
interface IonRouterOutletAttributes extends StencilHTMLAttributes {
@ -3651,7 +3651,7 @@ export namespace Components {
* Go back to previous page in the window.history.
*/
'goBack': () => Promise<void>;
'navChanged': (intent: number) => Promise<boolean>;
'navChanged': (direction: RouterDirection) => Promise<boolean>;
'printDebug': () => void;
/**
* Navigate to the specified URL.