Improvment in tslint standard (#16)
This commit is contained in:
@@ -3,7 +3,7 @@ import * as redux from 'redux'
|
||||
import thunk from 'redux-thunk'
|
||||
import {routerReducer, routerMiddleware } from 'react-router-redux'
|
||||
import createHistory from 'history/createBrowserHistory'
|
||||
import {createLogger} from 'redux-logger';
|
||||
import {createLogger} from 'redux-logger'
|
||||
|
||||
// - Import reducers
|
||||
import {
|
||||
@@ -16,9 +16,9 @@ import {
|
||||
userReducer,
|
||||
circleReducer,
|
||||
notificationReducer
|
||||
} from 'reducers';
|
||||
} from 'reducers'
|
||||
|
||||
declare const window: any;
|
||||
declare const window: any
|
||||
|
||||
// Create a history of your choosing (we're using a browser history in this case)
|
||||
export const history = createHistory()
|
||||
@@ -42,13 +42,13 @@ let reducer = redux.combineReducers({
|
||||
})
|
||||
|
||||
// - initial state
|
||||
var initialState = {
|
||||
let initialState = {
|
||||
|
||||
|
||||
}
|
||||
|
||||
// - Config and create store of redux
|
||||
var store : redux.Store<{}> = redux.createStore(reducer, initialState, redux.compose(
|
||||
let store : redux.Store<{}> = redux.createStore(reducer, initialState, redux.compose(
|
||||
redux.applyMiddleware(logger,thunk,middleware),
|
||||
(window as any).devToolsExtension ? (window as any).devToolsExtension() : (f:any) => f
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user