Function: routeStateOptions()
Call Signature
ts
function routeStateOptions<T>(options): T;Defined in: router/options.ts:13
Returns the options it is given with their types intact, so a definition can be shared by several components. An option a route state does not have is a type error. A getter is passed on as it is.
Type Parameters
| Type Parameter |
|---|
T extends ReactiveFields<WithParser<RouteStateOptions, ParserInput | undefined, unknown>, "missing" | "key"> |
Parameters
| Parameter | Type |
|---|---|
options | Exact<T, ReactiveFields<WithParser<RouteStateOptions, ParserInput | undefined, unknown>, "missing" | "key">> |
Returns
T
Call Signature
ts
function routeStateOptions<T>(options): () => T;Defined in: router/options.ts:16
Returns the options it is given with their types intact, so a definition can be shared by several components. An option a route state does not have is a type error. A getter is passed on as it is.
Type Parameters
| Type Parameter |
|---|
T extends ReactiveFields<WithParser<RouteStateOptions, ParserInput | undefined, unknown>, "missing" | "key"> |
Parameters
| Parameter | Type |
|---|---|
options | () => Exact<T, ReactiveFields<WithParser<RouteStateOptions, ParserInput | undefined, unknown>, "missing" | "key">> |
Returns
() => T