4 ms·
If you're comfortable with JS, you don't need a book to learn TS. There are two main resources I would recommend: - for those who prefer written content, the
by cehrlich 4y ago
If you're comfortable with JS, you don't need a book to learn TS.
There are two main resources I would recommend:
- for those who prefer written content, the TypeScript Handbook [1]
- for those who prefer video content, the first couple videos of Jack Herrington's No BS TS series [2]
Other than that, just start using it. My main advice would be that your TS code should look as much like JS code as possible, ie don't explicitly type everything, just rely on inference where possible. Basic generics can be useful occasionally, but most of the "Type Challenge" type stuff is only really useful to library developers.
[1] https://www.typescriptlang.org/docs/handbook/intro.html https://www.typescriptlang.org/docs/handbook/intro.html
[2] https://www.youtube.com/watch?v=LKVHFHJsiO0&list=PLNqp92_EXZBJYFrpEzdO2EapvU0GOJ09n https://www.youtube.com/watch?v=LKVHFHJsiO0&list=PLNqp92_EXZ...