Skip to content

Type Alias: TanStackRouteMapLike

API / @xmachines/play-tanstack-router / TanStackRouteMapLike

type TanStackRouteMapLike = object;

Defined in: play-tanstack-router/src/tanstack-router-bridge-base.ts:69

The narrow route-map surface that TanStackRouterBridgeBase requires. RouteMap from @xmachines/play-router satisfies it. The bridge converts a null result into undefined internally.

getPathByStateId can receive the stateId in the form "#stateId" or in the bare form "stateId". The bridge tries both forms. Therefore an implementation that holds one form only still resolves the path.

Methods

getPathByStateId()

getPathByStateId(id): string | null | undefined;

Defined in: play-tanstack-router/src/tanstack-router-bridge-base.ts:71

Parameters

ParameterType
idstring

Returns

string | null | undefined


getStateIdByPath()

getStateIdByPath(path): string | null | undefined;

Defined in: play-tanstack-router/src/tanstack-router-bridge-base.ts:70

Parameters

ParameterType
pathstring

Returns

string | null | undefined