function / @typed/svelte

useLocation

Follows committed entries from browser, server memory, or test Navigation.

Package version
1.0.0-beta.13
Category
function

Import

import { useLocation } from "@typed/svelte";

Signatures

export declare function useLocation<ER = never>(options?: SourceOptions<Destination, never, Navigation, ER>): import("./AsyncData.js").AsyncState<{
    readonly id: string;
    readonly key: string;
    readonly url: URL;
    readonly state: unknown;
    readonly sameDocument: boolean;
}, ER>;

Other public imports

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

Source