( name: Route["name"], path: Route["path"], /** * @remarks * This should be the result of the `page()` function. */ page: Route["page"], config?: RouteConfig, )
| 117 | * @category Constructors |
| 118 | */ |
| 119 | export function route( |
| 120 | name: Route["name"], |
| 121 | path: Route["path"], |
| 122 | /** |
| 123 | * @remarks |
| 124 | * This should be the result of the `page()` function. |
| 125 | */ |
| 126 | page: Route["page"], |
| 127 | config?: RouteConfig, |
| 128 | ): Route { |
| 129 | return { kind: "route", name, path, page, ...config }; |
| 130 | } |
| 131 | |
| 132 | /** |
| 133 | * @inline |
no outgoing calls