The type of data associated with this node (e.g., a handler).
The string literal representing the segment name.
Whether this node is a final route segment.
Creates a new Node instance.
The type of data associated with this node (e.g., a handler).
The string literal representing the segment name.
Whether this node is a final route segment.
Initialization parameters including name and endpoint status.
Child node for catch-all segments (e.g., '[...slug]')
Total number of direct children
Child node for simple dynamic segments (e.g., ':id')
Number of non-static children
Indicates if this node marks the end of a valid route
The name of this path segment
Child node for optional catch-all segments (e.g., '[[...slug]]')
The name of the parameter extracted from this segment, if any
Direct child nodes with static names
The data stored in this node if it's an endpoint
The classification of this node (Static, Dynamic, CatchAll, etc.)
Child node for wildcard segments (e.g., '*')
StaticresolveDerives the NodeType and extracted parameter name from a raw path segment.
Supported segment syntaxes:
:id → Dynamic (paramName: 'id')* → Wildcard (paramName: '*')[id] → Dynamic (paramName: 'id')[...id] → CatchAll (paramName: 'id')[[...id]] → OptionalCatchAll (paramName: 'id')The raw segment string to analyze.
An object containing the derived type and parameter name.
Represents a single node in the routing tree.