1// NOTE: This file is GENERATED from json files in actions/json. Run 'yarn build-actions' to regenerate 2 3// Constants 4export const resetStore = 'common:resetStore' // not a part of dev but is handled by every reducer. NEVER dispatch this 5export const typePrefix = 'dev:' 6export const debugCount = 'dev:debugCount' 7export const updateDebugConfig = 'dev:updateDebugConfig' 8 9// Payload Types 10type _DebugCountPayload = void 11type _UpdateDebugConfigPayload = { 12 readonly dumbFilter: string 13 readonly dumbFullscreen: boolean 14 readonly dumbIndex: number 15} 16 17// Action Creators 18export const createDebugCount = (payload: _DebugCountPayload): DebugCountPayload => ({ 19 payload, 20 type: debugCount, 21}) 22export const createUpdateDebugConfig = (payload: _UpdateDebugConfigPayload): UpdateDebugConfigPayload => ({ 23 payload, 24 type: updateDebugConfig, 25}) 26 27// Action Payloads 28export type DebugCountPayload = {readonly payload: _DebugCountPayload; readonly type: typeof debugCount} 29export type UpdateDebugConfigPayload = { 30 readonly payload: _UpdateDebugConfigPayload 31 readonly type: typeof updateDebugConfig 32} 33 34// All Actions 35// prettier-ignore 36export type Actions = 37 | DebugCountPayload 38 | UpdateDebugConfigPayload 39 | {type: 'common:resetStore', payload: {}} 40