UNPKG

@tanstack/vue-router

Version:

Modern and scalable routing for Vue applications

15 lines (14 loc) 726 B
import * as Vue from 'vue'; export declare const matchContext: Vue.InjectionKey<Vue.Ref<string | undefined>>; export declare const pendingMatchContext: Vue.InjectionKey<Vue.Ref<boolean>>; export declare const dummyPendingMatchContext: Vue.InjectionKey<Vue.Ref<boolean>>; export declare const routeIdContext: Vue.InjectionKey<string>; /** * Retrieves nearest pending-match state from the component tree */ export declare function injectPendingMatch(): Vue.Ref<boolean>; /** * Retrieves dummy pending-match state from the component tree * This only exists so we can conditionally inject a value when we are not interested in the nearest pending match */ export declare function injectDummyPendingMatch(): Vue.Ref<boolean>;