interface / @typed/svelte

RouteOptions

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

Package version
1.0.0-beta.13
Category
interface

Import

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

Signatures

export interface RouteOptions<Rt extends Route.Route.Any, ER = never> extends SourceOptions<Option.Option<Route.Route.Type<Rt>>, Matcher.RouteNotFound | Matcher.RouteDecodeError | Matcher.RouteGuardError, Router | Scope.Scope | Route.Route.DecodingServices<Rt>, ER> {
    readonly currentRoute?: CurrentRouteTree | Readable<CurrentRouteTree>;
}

Property: currentRoute

Replaces the ambient mount. A store changes the matching root reactively.

Other public imports

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

Source