Skip to content

Commit a93308b

Browse files
authored
Update README.md
1 parent b59fa4f commit a93308b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# 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.
33

44
### Relevant with TypeScript v2.2 (https://github.com/Microsoft/TypeScript/wiki/Roadmap)
55
> 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(
601601
602602
### tsconfig.json
603603
> 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 `npm i tslib` as prod dependency)
604605
```json
605606
{
606607
"compilerOptions": {
@@ -616,6 +617,7 @@ export const store = createStore(
616617
"es2016",
617618
"es2017.object"
618619
],
620+
"target": "es5",
619621
"module": "es2015",
620622
"moduleResolution": "node",
621623
"noEmit": true,
@@ -625,15 +627,14 @@ export const store = createStore(
625627
"noImplicitAny": true,
626628
"noImplicitReturns": true,
627629
"noImplicitThis": true,
628-
"outDir": "lib/",
630+
"outDir": "out/",
629631
"pretty": true,
630632
"removeComments": true,
631633
"sourceMap": true,
632-
"strictNullChecks": true,
633-
"target": "es5"
634+
"strictNullChecks": true
634635
},
635636
"include": [
636-
"src/**/*"
637+
"**/*"
637638
],
638639
"exclude": [
639640
"node_modules"

0 commit comments

Comments
 (0)