Skip to content

Interface: RouteLookupContract

API / @xmachines/play-dom-router / RouteLookupContract

Defined in: play-dom-router/src/connect-router.ts:15

Structural route lookup interface accepted by connectRouter.

Any object with these two methods satisfies the constraint — including RouteMap instances, subclasses, and plain test objects.

getPathByStateId may receive the stateId in either "#stateId" or bare "stateId" form — the bridge tries both forms automatically, so implementations keyed on a single form still resolve.

Methods

getPathByStateId()

getPathByStateId(id): string | null | undefined;

Defined in: play-dom-router/src/connect-router.ts:17

Parameters

ParameterType
idstring

Returns

string | null | undefined


getStateIdByPath()

getStateIdByPath(path): string | null | undefined;

Defined in: play-dom-router/src/connect-router.ts:16

Parameters

ParameterType
pathstring

Returns

string | null | undefined