import toggleConfig , { ABTest , Toggle } from './toggles' ; const toggleIds = toggleConfig . toggles . map ( toggle => toggle . id ) ; const testIds = toggleConfig . tests . map ( test => test . id ) ; type ToggleId = typeof toggleIds [ number ] ; type TestId = typeof testIds [ number ] ; export type TogglesResp = { toggles : Toggle [ ] ; tests : ABTest [ ] ; } ; export type Toggles = Record < ToggleId | TestId , boolean > ;