function / @typed/vue

useMatcher

Run the actual Typed matcher with Vue scope ownership and typed routing failures.

Package version
1.0.0-beta.13
Category
function

Import

import { useMatcher } from "@typed/vue";

Signatures

export declare function useMatcher<A, E, R, ER = never>(matcher: MaybeRefOrGetter<Matcher<A, E, R>>, options?: ReactiveOptions<A, E | RouteNotFound | RouteDecodeError | RouteGuardError, R | Router, ER>): import("./Reactive.js").AsyncState<A, E | ER | RouteNotFound | RouteDecodeError | RouteGuardError>;

Other public imports

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

Source