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
+68-86Lines changed: 68 additions & 86 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,17 +4,22 @@ _"This guide is a **living compendium** documenting the most important patterns
4
4
5
5
To provide the best experience we focus on the symbiosis of type-safe complementary libraries and learning the concepts like [Type Inference](https://www.typescriptlang.org/docs/handbook/type-inference.html), [Control flow analysis](https://github.com/Microsoft/TypeScript/wiki/What%27s-new-in-TypeScript#control-flow-based-type-analysis), [Generics](https://www.typescriptlang.org/docs/handbook/generics.html) and some [Advanced Types](https://www.typescriptlang.org/docs/handbook/advanced-types.html).
6
6
7
-
(_Compatible with **TypeScript v2.7.2**_)
8
-
9
7
[](https://gitter.im/react-redux-typescript-guide/Lobby)
10
8
9
+
> _Now compatible with **TypeScript v2.8.3**_
10
+
11
11
> #### _Found it usefull? Want more updates?_[**Give it a :star2:**](https://github.com/piotrwitek/react-redux-typescript-patterns/stargazers)
12
12
13
13
### Goals
14
14
- Complete type safety (with [`--strict`](https://www.typescriptlang.org/docs/handbook/compiler-options.html) flag) without loosing type information downstream through all the layers of our application (e.g. no type assertions or hacking with `any` type)
15
15
- Make type annotations concise by eliminating redudancy in types using advanced TypeScript Language features like **Type Inference** and **Control flow analysis**
16
16
- Reduce repetition and complexity of types with TypeScript focused [complementary libraries](#complementary-libraries)
17
17
18
+
### Complementary Projects
19
+
- Typesafe Action Creators for Redux / Flux Architectures [typesafe-actions](https://github.com/piotrwitek/typesafe-actions)
20
+
- Reference implementation of Todo-App: [typesafe-actions-todo-app](https://github.com/piotrwitek/typesafe-actions-todo-app)
21
+
- Utility Types for TypeScript: [utility-types](https://github.com/piotrwitek/utility-types)
22
+
18
23
### Playground Project
19
24
[](https://app.codeship.com/projects/262359)
20
25
@@ -54,7 +59,6 @@ You should check Playground Project located in the `/playground` folder. It is a
54
59
-[Default and Named Module Exports](#default-and-named-module-exports)
55
60
-[FAQ](#faq)
56
61
-[Contribution Guide](#contribution-guide)
57
-
-[Project Examples](#project-examples)
58
62
-[Tutorials](#tutorials)
59
63
60
64
---
@@ -711,11 +715,11 @@ import { RootState } from '@src/redux';
@@ -1338,15 +1326,15 @@ configure({ adapter: new Adapter() });
1338
1326
# Recipes
1339
1327
1340
1328
### tsconfig.json
1341
-
- Recommended setup for best benefits from type-checking, with support for JSX and ES2016 features
1342
-
- Add [`tslib`](https://www.npmjs.com/package/tslib) to minimize bundle size: `npmitslib` - this will externalize helper functions generated by transpiler and otherwise inlined in your modules
1343
-
- Include absolute imports config working with Webpack
- Install [`tslib`](https://www.npmjs.com/package/tslib) to cut on bundle size, by using external transpiltion helper module instead of adding them inline: `npmitslib`
1331
+
- Example setup for project relative path imports with Webpack
Copy file name to clipboardExpand all lines: docs/markdown/4_recipes.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,15 @@
1
1
# Recipes
2
2
3
3
### tsconfig.json
4
-
- Recommended setup for best benefits from type-checking, with support for JSX and ES2016 features
5
-
-Add[`tslib`](https://www.npmjs.com/package/tslib) to minimize bundle size: `npm i tslib` - this will externalize helper functions generated by transpiler and otherwise inlined in your modules
6
-
-Include absolute imports config working with Webpack
-Install[`tslib`](https://www.npmjs.com/package/tslib) to cut on bundle size, by using external transpiltion helper module instead of adding them inline: `npm i tslib`
6
+
-Example setup for project relative path imports with Webpack
Copy file name to clipboardExpand all lines: docs/markdown/_intro.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,17 +4,22 @@ _"This guide is a **living compendium** documenting the most important patterns
4
4
5
5
To provide the best experience we focus on the symbiosis of type-safe complementary libraries and learning the concepts like [Type Inference](https://www.typescriptlang.org/docs/handbook/type-inference.html), [Control flow analysis](https://github.com/Microsoft/TypeScript/wiki/What%27s-new-in-TypeScript#control-flow-based-type-analysis), [Generics](https://www.typescriptlang.org/docs/handbook/generics.html) and some [Advanced Types](https://www.typescriptlang.org/docs/handbook/advanced-types.html).
6
6
7
-
(_Compatible with **TypeScript v2.7.2**_)
8
-
9
7
[](https://gitter.im/react-redux-typescript-guide/Lobby)
10
8
9
+
> _Now compatible with **TypeScript v2.8.3**_
10
+
11
11
> #### _Found it usefull? Want more updates?_[**Give it a :star2:**](https://github.com/piotrwitek/react-redux-typescript-patterns/stargazers)
12
12
13
13
### Goals
14
14
- Complete type safety (with [`--strict`](https://www.typescriptlang.org/docs/handbook/compiler-options.html) flag) without loosing type information downstream through all the layers of our application (e.g. no type assertions or hacking with `any` type)
15
15
- Make type annotations concise by eliminating redudancy in types using advanced TypeScript Language features like **Type Inference** and **Control flow analysis**
16
16
- Reduce repetition and complexity of types with TypeScript focused [complementary libraries](#complementary-libraries)
17
17
18
+
### Complementary Projects
19
+
- Typesafe Action Creators for Redux / Flux Architectures [typesafe-actions](https://github.com/piotrwitek/typesafe-actions)
20
+
- Reference implementation of Todo-App: [typesafe-actions-todo-app](https://github.com/piotrwitek/typesafe-actions-todo-app)
21
+
- Utility Types for TypeScript: [utility-types](https://github.com/piotrwitek/utility-types)
22
+
18
23
### Playground Project
19
24
[](https://app.codeship.com/projects/262359)
This folder is a playground for testing examples from `react-redux-typescript-guide`.
2
2
3
3
I have a secondary goal to create a separate project starter that could be used to bootstrap a real world application like this one: https://github.com/gothinkster/realworld
0 commit comments