interface / @typed/react/Router

RouteOptions

Replaces the ambient mount. Outside this root, Typed reports RouteNotFound.

Package version
1.0.0-beta.13
Category
interface

Import

import { RouteOptions } from "@typed/react/Router";

Signatures

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

Property: currentRoute

Replaces the ambient mount. Outside this root, Typed reports RouteNotFound.

Other public imports

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

Source