export type QuittingState = "Not Started" | "Quitting" ; export const QUITTING_STATE_NOT_STARTED = "Not Started" ; export const QUITTING_STATE_QUITTING = "Quitting" ; export interface SetQuittingStateAction { type : "SET_QUITTING_STATE" ; payload : { newState : QuittingState ; } ; } export function setQuittingState ( newState ) { return { type : "SET_QUITTING_STATE" , payload : { newState } } ; }