// store.ts import { createStore } from 'redux' import rootReducer from '../reducers' const store = createStore(rootReducer) export type RootReducerType = ReturnType export default store reducers/addAllergy.ts interface IntialState { data?: string[] } const initialState: IntialState = { data: [], } type addAllergy = { type: 'addAllergy' payload: string[] } const AddAllergy = (state = initialStat..