Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing store in TypeScript example #240

Merged
merged 1 commit into from Jan 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/typescript/src/configureStore.tsx
Expand Up @@ -5,7 +5,7 @@ import createRootReducer from './reducers'

export const history = createBrowserHistory()

export default function configureStore(preloadedState) {
export default function configureStore(preloadedState?: any) {
const composeEnhancer: typeof compose = (window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose
const store = createStore(
createRootReducer(history),
Expand Down
1 change: 1 addition & 0 deletions examples/typescript/src/index.tsx
Expand Up @@ -5,6 +5,7 @@ import ReactDOM from 'react-dom'
import App from './App'
import configureStore, { history } from './configureStore'

const store = configureStore()
const render = () => {
ReactDOM.render(
<AppContainer>
Expand Down