function / @typed/svelte/Router

provideCurrentRoute

Extends the structural CurrentRoute for descendants, including nested Typed content. Pass the full mount route, as with CurrentRoute.extend.

Package version
1.0.0-beta.13
Category
function

Import

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

Signatures

export declare function provideCurrentRoute<R = never, ER = never>(route: Route.Route.Any, runtime?: RuntimeSource<R, ER>): Readable<Runtime<R | CurrentRoute, ER>>;

Other public imports

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

Source