https://github.com/ivan-kleshnin/typescript-modern
Modern TypeScript – developer notes
https://github.com/ivan-kleshnin/typescript-modern
Last synced: 7 months ago
JSON representation
Modern TypeScript – developer notes
- Host: GitHub
- URL: https://github.com/ivan-kleshnin/typescript-modern
- Owner: ivan-kleshnin
- Created: 2020-12-11T18:52:42.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-14T13:02:44.000Z (almost 5 years ago)
- Last Synced: 2025-02-01T22:12:50.703Z (8 months ago)
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Modern TypeScript
*Developer notes about modern (2020) TypeScript.*
#### Rules
- Avoid `any`, use `unknown` instead.
- Avoid `Object` and `object`, use `{[key: string] : unknown}` instead.
- Avoid Enums, use Unions instead.#### Unsorted
- [Global variables](https://mariusschulz.com/blog/declaring-global-variables-in-typescript)
#### Whys
- [Any-vs-Unknown](https://mariusschulz.com/blog/the-unknown-type-in-typescript)
- [Object-vs-object-vs-{}](https://stackoverflow.com/questions/49464634/difference-between-object-and-in-typescript)### Resources
- [React and TypeScript](https://react-typescript-cheatsheet.netlify.app/)
- [TypeScript evolution by Marius Schulz](https://mariusschulz.com/blog/series/typescript-evolution)