UNPKG

@bhupinderanand/react-redux-saga-boilerplate

Version:
27 lines (23 loc) 682 B
import { keyMirror } from '@gilbarbara/helpers'; import { Status } from 'types'; export const ActionTypes = keyMirror({ GITHUB_GET_REPOS_REQUEST: undefined, GITHUB_GET_REPOS_SUCCESS: undefined, GITHUB_GET_REPOS_FAILURE: undefined, HIDE_ALERT: undefined, SHOW_ALERT: undefined, SET_APP_OPTIONS: undefined, USER_LOGIN_REQUEST: undefined, USER_LOGIN_SUCCESS: undefined, USER_LOGIN_FAILURE: undefined, USER_LOGOUT_REQUEST: undefined, USER_LOGOUT_SUCCESS: undefined, USER_LOGOUT_FAILURE: undefined, }); export const STATUS: Status = { IDLE: 'idle', RUNNING: 'running', READY: 'ready', SUCCESS: 'success', ERROR: 'error', };