Interface: RouteLookupContract
API / @xmachines/play-dom-router / RouteLookupContract
Defined in: play-dom-router/src/connect-router.ts:11
Structural route lookup interface accepted by connectRouter.
Any object with these two methods satisfies the constraint — including
RouteMap instances, subclasses, and plain test objects.
Methods
getPathByStateId()
getPathByStateId(id): string | null | undefined;Defined in: play-dom-router/src/connect-router.ts:13
Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
string | null | undefined
getStateIdByPath()
getStateIdByPath(path): string | null | undefined;Defined in: play-dom-router/src/connect-router.ts:12
Parameters
| Parameter | Type |
|---|---|
path | string |
Returns
string | null | undefined