Skip to content

TypeScript Blackbook

How to use TypeScript efficiently

This book focus on how to get the most out of TypeScript with minimal effort.

To achieve that goal, following some coding styles is a good place to start.

However, just following what to do can only go so far. You need to know why should you write code in certain way, what are the trade-offs you are making, as well as the design and the limitations of the language itself, so that you have the right mindset and approach the problem and come to a solution effectively.

Therefore, this book covers more than just style guide and best practices.

Guidelines

What you should and should not do, and the reasoning behind it. Read the guidelines

tsconfig

Compiler options explained, with the trade-offs each one makes. Declaration Map

TypeScript Features

Language features and how to get the most out of them. Assertion Function