UNPKG

nativescript-vue-router-extended

Version:

NativeScript Vue Router Extended for NativeScript Vue hybrid Apps.

17 lines (16 loc) 595 B
import { GuardReturnContext } from "./typings/router-guards-service"; import { Route } from "./typings/router-service"; import { NavigationGuard } from "vue-router"; export declare class RouterGuardService { private guardCallbacks; private isCancelled; private lastContext; private routeTo; private routeFrom; private isHook; constructor(to: Route, from: Route, isHook?: boolean); add(callback: NavigationGuard): void; executeCallbacks(arr: any, predicate: any): Promise<boolean>; run(): GuardReturnContext; setRoutes(to: Route, from: Route): void; }