In this book, we take you on a fun, hands-on crash course to learning TypeScript. TypeScript is one of the most important tools for JavaScript developers. But some avoid it thinking that it is a chore to have squiggly red lines appear in their code. This practical guide shows how TypeScript actually makes your code better and makes you think like a senior developer.
In the course of this book, we will cover:
- Transiting to TypeScript
- Defensive Coding
- Types, Defining Custom Types and Nested Object Types
- Optional Properties
- Unions
- Type Narrowing
- Should we use Any
- Utility Types - Partial and Omit
- Generics and their Application
- and more.
The goal of this book is to teach you TypeScript in a manageable way without overwhelming you. We focus only on the essentials and cover the material in a hands-on practice manner for you to code along.