Import
import { path } from "@typed/router/AST";Signatures
export declare const path: (path: PathAst) => RouteAst.Path;Why
Path syntax can participate in route joins and schema transformations without reparsing strings.
Ownership and lifetime
path returns a fresh plain AST node immediately and retains any supplied child nodes or arrays by reference; it acquires no external resource.