The type of value returned by the Route.action.
An extension of the Route type that provides specific data.
An extension of the RouterContext type that provides specific data. The data should be serializable
Constructs a router instance.
Readonly
baseURLThe base URL against which all routes will be resolved. This option is designed for applications hosted on URLs like the following:
https://example.com/path/to/my/root
Readonly
routesA list of routes that are used to resolve the URL.
Resolves the provided path based on the established routes.
The path to be resolved. It can be either an absolute URL or a string path relative to the RouterOptions.baseURL.
Resolves the provided path based on the established routes.
The path to be resolved. It can be either an absolute URL or a string path relative to the RouterOptions.baseURL.
Any data that needs to be sent to Route.action.
The type of this parameter should match the C
type parameter of the
Route. If C
is not provided or is equal to EmptyObject, setting
this parameter is forbidden.
The main class that creates a router instance.