function / @typed/svelte/Router

useCurrentPath

Follows the canonical pathname plus query used by Typed’s Matcher.

Package version
1.0.0-beta.13
Category
function

Import

import { useCurrentPath } from "@typed/svelte/Router";

Signatures

export declare function useCurrentPath<ER = never>(options?: SourceOptions<string, never, Navigation, ER>): import("./AsyncData.js").AsyncState<string, ER>;

Other public imports

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

Source