|
28 | 28 | - [Section 4: Misc. Concerns](#section-4--misc-concerns)
|
29 | 29 | * [Writing Typescript Libraries instead of Apps](#writing-typescript-libraries-instead-of-apps)
|
30 | 30 | * [Component/Design System Development](#component-design-system-development)
|
31 |
| - * [Building](#building) |
| 31 | + * [Migrating from Flow](#migrating-from-flow) |
32 | 32 | * [Prettier + TSLint](#prettier---tslint)
|
33 | 33 | * [ESLint + TSLint](#eslint---tslint)
|
34 | 34 | * [Working with Non-Typescript Libraries (writing your own index.d.ts)](#working-with-non-typescript-libraries--writing-your-own-indexdts-)
|
@@ -517,9 +517,9 @@ For developing with Storybook, read the docs I maintain over here: <https://stor
|
517 | 517 |
|
518 | 518 | [Something to add? File an issue](https://github.com/sw-yx/react-typescript-cheatsheet/issues/new).
|
519 | 519 |
|
520 |
| -## Building |
| 520 | +## Migrating From Flow |
521 | 521 |
|
522 |
| -*Not written yet.* |
| 522 | +You may wish to use <https://github.com/piotrwitek/utility-types>. If you have specific advice in this area, please file a PR! |
523 | 523 |
|
524 | 524 | [Something to add? File an issue](https://github.com/sw-yx/react-typescript-cheatsheet/issues/new).
|
525 | 525 |
|
@@ -657,6 +657,8 @@ An example github repository with a project showing how to integrate [eslint + t
|
657 | 657 |
|
658 | 658 | Please contribute on this topic! [We have an ongoing issue here with some references](https://github.com/sw-yx/react-typescript-cheatsheet/issues/8).
|
659 | 659 |
|
| 660 | + |
| 661 | + |
660 | 662 | # Troubleshooting Handbook: Types
|
661 | 663 |
|
662 | 664 | Facing weird type errors? You aren't alone. This is the worst part of using Typescript with React. Try to avoid typing with `any` as much as possible to experience the full benefits of typescript. Instead, let's try to be familiar with some of the common strategies to solve these issues.
|
@@ -844,7 +846,7 @@ This is not yet written. Please PR or [File an issue](https://github.com/sw-yx/r
|
844 | 846 |
|
845 | 847 | ## Type Zoo
|
846 | 848 |
|
847 |
| -As you can see from the Omit example above, you can write significant logic in your types as well. [type-zoo](https://github.com/pelotom/type-zoo) is a nice toolkit of operators you may wish to check out (includes Omit). |
| 849 | +As you can see from the Omit example above, you can write significant logic in your types as well. [type-zoo](https://github.com/pelotom/type-zoo) is a nice toolkit of operators you may wish to check out (includes Omit), as well as [utility-types](https://github.com/piotrwitek/utility-types) (especially for those migrating from Flow). |
848 | 850 |
|
849 | 851 | # Troubleshooting Handbook: TSLint
|
850 | 852 |
|
|
0 commit comments