UNPKG

router-vue-native

Version:

NativeScript Vue Router Extended for NativeScript Vue hybrid Apps.

18 lines (17 loc) 595 B
import { GuardReturnContext } from "./typings/router-guards-service"; import { Route } from "./typings/router-service"; declare type NavigationGuard = {}; 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; } export {};