UNPKG

@tanstack/vue-router

Version:

Modern and scalable routing for Vue applications

12 lines (11 loc) 368 B
import { AnyRouter } from '@tanstack/router-core'; import * as Vue from 'vue'; 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;