Skip to content

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

ParameterType
idstring

Returns

string | null | undefined


getStateIdByPath()

getStateIdByPath(path): string | null | undefined;

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

Parameters

ParameterType
pathstring

Returns

string | null | undefined