The type of prepared data returned by the route's prepare function
Route parameter types extracted from the URL path
OptionalchildrenNested child routes or redirects.
IMPORTANT: This used to be typed as (Route<any, PrepareResult> | Redirect)[] which
widened (erased) the generic parameter types (notably the TVariables of each
child). That caused TypeScript to treat every child route's prepare callback
as accepting the default ParamData shape (effectively Partial<Record<string,string|string[]>>).
When user code specified a more specific parameter object (e.g. { slug: string })
for a path like :slug, the function type became non‑assignable because its
parameter was stricter than the widened version. By switching to AnyRoute we
retain any in the erased position instead of a concrete ParamData, which
allows stricter child variables shapes without conflict.
Using AnyRoute purposely preserves independence of each route's generic
parameters while still keeping runtime representation identical.
OptionalpathURL path pattern for this route
OptionalprepareFunction to prepare data before rendering
OptionalqueryUnified schema (filter / query)
OptionalrenderCustom render function for this route
OptionalresourceResource page for lazy-loaded components
Configuration for a single route in the router.