Module / v1.0.0-beta.13

@typed/svelte/Router

7 unique exports available through this public import path, including their members and aliases.

import * as Router from "@typed/svelte/Router";

function

  • provideCurrentRoute

    function

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

  • useCurrentPath

    function

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

  • useCurrentRoute

    function

    Reads the structural route owner; navigation does not rewrite this tree.

  • useLocation

    function

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

  • useNavigation

    function

    Native state plus promise commands using the closest Navigation service. Commands use the latest provider after runtime replacement.

  • useRoute

    function

    Decodes reactive route parameters with Typed’s matcher. By default, leaving the ambient mount yields None. An explicit root confines the wildcard to that root, so paths outside it retain the native RouteNotFound failure.

interface

  • RouteOptions

    interface

    Options for matching one route through Typed’s native matcher.