Import
import { redirectTo } from "@typed/router";Signatures
export declare const redirectTo: (path: string) => <I extends Fx.Fx.Any | Matcher.Any>(input: I) => Fx.Fx<InputSucces<I>, Exclude<InputError<I>, RouteNotFound>, Router | Scope.Scope | InputServices<I>>;Why
A fallback route can redirect without masking matched-handler failures or redirecting forever.
Ownership and lifetime
Calling redirectTo constructs an Fx and retains only the target string and input. Its single retry and Navigation operation run in the consumer Scope.
Examples
import * as Router from "@typed/router"
const app = Router.match(Router.Parse("/"), "home")
const withFallback = Router.redirectTo("/not-found")(app)Other public imports
These import paths expose the same declaration. Each page retains its own public name and signature.