Route type
Home > @rimitive/router > Route
Route type
Section titled “Route type”Route wraps a RefSpec with routing metadata for path composition. Delegates to internal RefSpec via closure.
Signature:
export type Route<TElement> = { routeMetadata: RouteMetadata<AdapterConfig>; unwrap(): RefSpec<TElement>; create<TExt = Record<string, unknown>>(svc?: unknown, extensions?: TExt): import('@rimitive/view/types').NodeRef<TElement> & TExt;};References: RouteMetadata, AdapterConfig, RefSpec, NodeRef