You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
# React & Redux in TypeScript - Guidelines & Patterns
2
-
Set of guidelines and patterns teaching how to correctly use TypeScript to fully leverage power from static typing when working with React & Redux ecosystem.
2
+
Set of guidelines and patterns teaching how to correctly use TypeScript to fully leverage the power of static typing when working with React & Redux ecosystem.
3
3
4
4
### Relevant with TypeScript v2.2 (https://github.com/Microsoft/TypeScript/wiki/Roadmap)
5
5
> powered by github :star: - [star it please](https://github.com/piotrwitek/react-redux-typescript-patterns/stargazers) to keep me motivated to maintain this repo with new TypeScript releases
@@ -601,6 +601,7 @@ export const store = createStore(
601
601
602
602
### tsconfig.json
603
603
> Recommended setup for best benefits from type-checking, with support for JSX and ES2016 features.
604
+
- this setup uses [`tslib`](https://www.npmjs.com/package/tslib) helpers to slim emitted modules (install with `npmitslib` as prod dependency)
604
605
```json
605
606
{
606
607
"compilerOptions": {
@@ -616,6 +617,7 @@ export const store = createStore(
616
617
"es2016",
617
618
"es2017.object"
618
619
],
620
+
"target": "es5",
619
621
"module": "es2015",
620
622
"moduleResolution": "node",
621
623
"noEmit": true,
@@ -625,15 +627,14 @@ export const store = createStore(
0 commit comments