fix(vue): canGoBack param should be optional

This commit is contained in:
Liam DeBeasi
2020-09-11 11:50:04 -04:00
parent af2e6ca8d2
commit 2efab94035

View File

@ -4,7 +4,7 @@ import { inject } from 'vue';
type Handler = (processNextHandler: () => void) => Promise<any> | void | null;
export interface IonRouter {
canGoBack: (deep: number) => boolean;
canGoBack: (deep?: number) => boolean;
}
export const useHardwareBackButton = (priority: number, handler: Handler) => {