UNPKG

@tanstack/vue-router

Version:

Modern and scalable routing for Vue applications

12 lines (11 loc) 373 B
import * as Vue from 'vue'; import type { AnyRouter } from '@tanstack/router-core'; export declare const routerContext: Vue.InjectionKey<AnyRouter>; /** * Provides the router to all child components */ export declare function provideRouter(router: AnyRouter): void; /** * Injects the router from the component tree */ export declare function injectRouter(): AnyRouter;