variable / @typed/router

Slash

The root slash Route.

Package version
1.0.0-beta.13
Category
Route construction
Since
1.0.0

Import

import { Slash } from "@typed/router";

Signatures

export declare const Slash: Route<"/", Schema.Codec<{}, {}, never, never>>;

Why

Root matching remains an explicit route value rather than an empty sentinel.

Ownership and lifetime

Slash constructs its Route immediately. The Route retains the supplied AST or route values and lazily memoizes derived paths and Codecs; Codec services are required only when decoding or encoding runs.

Other public imports

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

Source