{"action":"closed","issue":{"url":"https://api.github.com/repos/rt2zz/redux-persist/issues/839","repository_url":"https://api.github.com/repos/rt2zz/redux-persist","labels_url":"https://api.github.com/repos/rt2zz/redux-persist/issues/839/labels{/name}","comments_url":"https://api.github.com/repos/rt2zz/redux-persist/issues/839/comments","events_url":"https://api.github.com/repos/rt2zz/redux-persist/issues/839/events","html_url":"https://github.com/rt2zz/redux-persist/issues/839","id":329847357,"node_id":"MDU6SXNzdWUzMjk4NDczNTc=","number":839,"title":"Argument of type 'Reducer<PersistPartial, Action<any>>' is not assignable to parameter of type 'StoreEnhancer<{}, {}>'.","user":{"login":"alexandraclaire","id":14244460,"node_id":"MDQ6VXNlcjE0MjQ0NDYw","avatar_url":"https://avatars0.githubusercontent.com/u/14244460?v=4","gravatar_id":"","url":"https://api.github.com/users/alexandraclaire","html_url":"https://github.com/alexandraclaire","followers_url":"https://api.github.com/users/alexandraclaire/followers","following_url":"https://api.github.com/users/alexandraclaire/following{/other_user}","gists_url":"https://api.github.com/users/alexandraclaire/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandraclaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandraclaire/subscriptions","organizations_url":"https://api.github.com/users/alexandraclaire/orgs","repos_url":"https://api.github.com/users/alexandraclaire/repos","events_url":"https://api.github.com/users/alexandraclaire/events{/privacy}","received_events_url":"https://api.github.com/users/alexandraclaire/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-06T12:32:23Z","updated_at":"2018-06-07T08:34:17Z","closed_at":"2018-06-07T08:34:17Z","author_association":"NONE","body":"Hi, I have set up my project to use redux-persist according to the basic usage example, except that I am using Typescript.\r\nWhen I build, I get this error: Argument of type 'Reducer<PersistPartial, Action<any>>' is not assignable to parameter of type 'StoreEnhancer<{}, {}>'.\r\n\r\nAnyone know why this is happening?\r\n\r\nMy index.tsx code is below:\r\n\r\n```\r\nimport './scss/styles.scss';\r\n\r\nimport * as React from 'react';\r\nimport * as ReactDOM from 'react-dom';\r\nimport { Provider } from 'react-redux';\r\nimport { applyMiddleware, createStore } from 'redux';\r\nimport { persistStore, persistReducer } from 'redux-persist';\r\nimport storage from 'redux-persist/lib/storage'; // defaults to localStorage for web\r\nimport thunk from 'redux-thunk';\r\n\r\nimport AppParent from './AppParent';\r\nimport registerServiceWorker from './registerServiceWorker';\r\nimport Reducers from './store/Reducer';\r\nimport { PersistGate } from 'redux-persist/integration/react';\r\n\r\nconst persistConfig = {\r\n\tkey: 'root',\r\n\tstorage,\r\n}\r\nconst persistedReducer = persistReducer(persistConfig, Reducers);\r\n\r\nconst store = createStore(Reducers, applyMiddleware(thunk), persistedReducer);\r\n\r\nlet persistor = persistStore(store);\r\n\r\nconst Root = () => {\r\n\treturn (\r\n\t\t<AppParent />\r\n\t)\r\n};\r\n\r\nReactDOM.render(<Provider store={store} ><PersistGate loading={null} persistor={persistor}><Root /></PersistGate></Provider>, document.getElementById('root'));\r\n```\r\n"}}
{"actor":{"display_login":"alexandraclaire"}}