function / @typed/vue/Router

useRoute

Decode under the inherited mount, or a reactive explicit root applied exactly once.

Package version
1.0.0-beta.13
Category
function

Import

import { useRoute } from "@typed/vue/Router";

Signatures

export declare function useRoute<Rt extends Route.Any, ER = never>(route: MaybeRefOrGetter<Rt>, options?: RouteOptions<Rt, ER>): import("./Reactive.js").AsyncState<Option.Option<Route.Route.Type<Rt>>, RouteNotFound | RouteDecodeError | RouteGuardError | ER>;

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source