Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8cc7fe6

Browse files
author
okan.cetin
committed
#000 okan update redux-ts to latest
1 parent0b3f662 commit8cc7fe6

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"react-router-redux":"^4.0.5",
1717
"react-tap-event-plugin":"^1.0.0",
1818
"redux":"^3.5.2",
19-
"redux-ts":"^1.1.4",
19+
"redux-ts":"^2.1.0",
2020
"ts-helpers":"^1.1.1"
2121
},
2222
"devDependencies": {

‎src/app/containers/Root.tsx‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Router, Route, hashHistory } from 'react-router'
55
import{syncHistoryWithStore,routerMiddleware,routerReducer}from'react-router-redux'
66

77
import{reducers,StoreState}from"../reducers"
8-
import{StoreBuilder,typedToPlainMiddleware,asyncMiddleware}from'redux-ts'
8+
import{StoreBuilder}from'redux-ts'
99

1010
importroutesfrom'../routes'
1111

@@ -17,13 +17,11 @@ export default class RootContainer extends React.Component<any, any>{
1717
constructor(){
1818
super();
1919

20-
this.store=newStoreBuilder()
21-
.withMiddleware(typedToPlainMiddleware)
22-
.withMiddleware(asyncMiddleware)
20+
this.store=newStoreBuilder<StoreState>()
2321
.withMiddleware(routerMiddleware(hashHistory))
2422
.withReducer("routing",routerReducer)
2523
.withReducersMap(reducers)
26-
.build<StoreState>();
24+
.build();
2725

2826
this.history=syncHistoryWithStore(hashHistory,this.store);
2927
}

‎tsconfig.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
"filesGlob": [
1313
"./typings/index.d.ts",
1414
"./custom_typings/**/*.d.ts",
15-
"./src/**/*.tsx"
15+
"./src/**/*.tsx?"
1616
]
1717
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp