RouterResolve
Resolves a URL to a route object.
Type parameters
Parameter | Type |
---|---|
TSource | Name |
Parameters
If source is Url
Parameter | Type |
---|---|
source | Url |
options | RouterResolveOptions | undefined |
If source is TSource
Parameter | Type |
---|---|
source | TSource |
params | RouterResolveArgs |
options | RouterResolveOptions | undefined |
RouterResolveArgs
If source is Url
, expected type for params is never
. Else when source is TSource
, router will require params for required path/query params. If no path/query params on route or all params are optional, the argument will be optional.
RouterResolveOptions
ts
{
query?: QuerySource,
hash?: string,
}
Returns
Url