— bridge map (Record<Key, BridgeInterface>)
— configuration (bridges, initialKeys, activated, owned)
const bridge1 = createPassBridge<number>({ source, target, activated: false });
const bridge2 = createPassBridge<number>({ source, target, activated: false });
const selector = createBridgeMultiSelector({
bridges: { first: bridge1, second: bridge2 },
initialKeys: ['first'],
activated: true,
owned: false
});
selector.check('second'); // adds the second bridge to active
Creates a BridgeMultiSelector — a selector for multiple bridges from a map.