Added first Typescript files

This commit is contained in:
Alejandro Celaya
2020-08-22 08:47:19 +02:00
parent a91f1b3bd4
commit 72de9d4ff8
8 changed files with 135 additions and 13 deletions

View File

@@ -1,13 +1,12 @@
import ReduxThunk from 'redux-thunk';
import { applyMiddleware, compose, createStore } from 'redux';
import { save, load } from 'redux-localstorage-simple';
import { save, load, RLSOptions } from 'redux-localstorage-simple';
import reducers from '../reducers';
const composeEnhancers = process.env.NODE_ENV !== 'production' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
: compose;
const isProduction = process.env.NODE_ENV !== 'production';
const composeEnhancers: Function = !isProduction && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const localStorageConfig = {
const localStorageConfig: RLSOptions = {
states: [ 'settings', 'servers' ],
namespace: 'shlink',
namespaceSeparator: '.',