import createStore from "redux-zero"; interface IState { count?: number; data?: any; loading?: boolean; } const initialState: IState = { count: 1, data: [], loading: false }; // tsエラーがでるので一旦any型へ格納 const _createStore: any = createStore; const store = _createStore(initialState); export default store; import client from "axios"; const actions = ({ setState }: any) => ({ decrement: (state: any) => ({