ConfigMap, this is a helper type to define the configuration map for the switch loader.
The configuration map
The key to switch between
v0.10.1
type TestConfigMapEnv = { DEMO: string; ANOTHER: string; };const switchConfigMap: SwitchConfigMap<TestConfigMapEnv, 'switch1' | 'switch2'> = { switch1: { DEMO: 'value' }, switch2: { DEMO: 'value2' },}; Copy
type TestConfigMapEnv = { DEMO: string; ANOTHER: string; };const switchConfigMap: SwitchConfigMap<TestConfigMapEnv, 'switch1' | 'switch2'> = { switch1: { DEMO: 'value' }, switch2: { DEMO: 'value2' },};
ConfigMap, this is a helper type to define the configuration map for the switch loader.