Import
import { PathAst } from "@typed/router/AST";Access PathAst.Wildcard through the imported PathAst export. Its declaration below describes the member.
Signatures
type Wildcard = {
type: "wildcard";
};Why
Catch-all matching is explicit and can be ordered after constrained routes.
Ownership and lifetime
Wildcard describes plain readonly AST data. Routes and Matchers retain the concrete nodes they receive by reference; the type itself owns no resource.
Property: type
Discriminates a terminal wildcard node.
Property: type: Why
Catch-all path matching stays explicit in compilation and formatting.
Property: type: Ownership and lifetime
The literal tag is the node’s only state and owns no captured path value.