import actionCreatorFactory from 'typescript-fsa' const actionCreator = actionCreatorFactory() import * as constants from './constants' import { IProfile } from './interfaces' export const fetchProfilePending = actionCreator(constants.FETCH_PROFILE_PENDING) export const fetchProfileSuccess = actionCreator(constants.FETCH_PROFILE_SUCCESS) export const fetchProfileFailure = actionCreator(constants.FETCH_PROFILE_FAILURE)