variable / @typed/router

empty

An immutable Matcher with no registered cases.

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

Import

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

Signatures

export declare const empty: Matcher<never>;

Why

It is the neutral starting value for fluent route registration.

Ownership and lifetime

This singleton stores an empty immutable case array and owns no Scope. Match calls return new Matcher values without mutating it.

Other public imports

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

Source