Import
import { parameter } from "@typed/router/AST";Signatures
export declare const parameter: (name: string, optional?: boolean, regex?: string) => PathAst.Parameter;Why
Runtime builders retain constraints for matcher registration and schema derivation.
Ownership and lifetime
parameter returns a fresh plain AST node immediately and retains any supplied child nodes or arrays by reference; it acquires no external resource.