basalt / realtime/src / bridgeRule
Function: bridgeRule()
> bridgeRule<K>(rule): BridgeRule
Defined in: realtime/src/plugin.ts:45
Type-checks one bridge rule against its hook's payload, then erases the generic so rules for different hooks live in the same array.
Type Parameters
K
K extends string
Parameters
rule
BridgeRule<K>