Skip to content

Function: isMountableBridge()

API / @xmachines/play-router / index / isMountableBridge

function isMountableBridge(bridge): bridge is MountableRouterBridge;

Defined in: packages/play-router/src/provider-lifecycle.ts:136

Tells you whether a bridge can move its mount.

PlayRouterBridgeConstructor asks for a RouterBridge, the published contract, so a consumer bridge that never heard of basePath still compiles. Such a bridge ignores the prefix, exactly as it did before the option existed, so the probe runs at run time rather than in the type system.

Parameters

ParameterType
bridgeRouterBridge | null | undefined

Returns

bridge is MountableRouterBridge