Types: PropsGetter()<TOptions, TComponent>
ts
type PropsGetter<TOptions, TComponent> = (route, context) => MaybePromise<ComponentProps<TComponent>>;Type Parameters
| Type Parameter | Default type |
|---|---|
TOptions extends CreateRouteOptions | CreateRouteOptions |
TComponent extends Component | Component |
Parameters
| Parameter | Type |
|---|---|
route | ResolvedRoute<ToRoute<TOptions, undefined>> |
context | PropsCallbackContext<TOptions["parent"]> |
Returns
MaybePromise<ComponentProps<TComponent>>