In a recent article we covered the immense value of TypeScript in great detail. It’s one of the best web languages that’s not really a language.
Online tutorials and books will help the most. There are some TS resources in the detailed writeup, but in this post I want to focus more on books. Each of these titles cover TypeScript in great detail and should help any novice gain competency quickly.
But Steve also explains specific design patterns and best practices for writing quality TypeScript code. Each chapter builds upon the last and you never feel like you’re left out to dry on your own.
A related book I’d recommend is TypeScript Revealed by the same publishers. This one’s much smaller but covers detailed examples of TypeScript in action.
There are many great intro tutorials in the TS documentation. It’s free and generally straightforward, although it may not be dense enough for everyone.
That’s why TypeScript Essentials is a go-to recommended source for absolute beginners. You’ll learn all the constructs of writing TypeScript code and using the Visual Studio development IDE. Lessons start very simple and quickly move through TypeScript examples and Object-Oriented tutorials.
Note that if you’re an intermediate-to-advanced developer this book probably isn’t for you. But the absolute beginner will get a lot from this guide.
Here’s another book published by Packt covering all the basics of TypeScript and ECMAScript. Learning TypeScript covers 10 chapters with each chapter delving into specific areas of ES6 and ES7.
All the examples in this book are fairly trivial by design. Absolute beginners will get the most value from this, while experienced devs may fly through and not get much from it.
Once you get past the fundamental topics you’ll want to delve into complex TypeScript applications. This is where Mastering TypeScript comes in handy.
The book spans 260 pages of advanced TypeScript tutorials that cover real-world applications of the code demos. Early chapters can be boring as they’re written to get beginners up to speed. But once you get into chapter 4 and beyond you’ll be flying.
Each project in the book will introduce you to unique concepts like unit testing, object-oriented code, and the use of frameworks. However I would take the frameworks section with a grain of salt. These are merely suggestions but some readers may take them as mandatory tools for using TypeScript in the real world.
Overall this is one of the better books for intermediate-level web developers. You’ll see how TS really works and be able to apply these concepts in your own work.
Kyle Simpson is the very knowledgeable author of You Don’t Know JS: ES6 & Beyond. This title has the benefit of being platform-agnostic when it comes to ES6 code.
The biggest problem with this book is the English grammar & spelling. It seems either poorly edited or written by a non-native speaker.
For this reason I would personally recommend You Don’t Know JS instead of this book.
However the examples, code snippets, and comparisons in this book make it valuable enough to reference in this list.
But it does contain almost everything you’d need to pick up TypeScript. The basics like annotations and declarations will cue you into the buzzwords behind TypeScript’s popularity, and this book will help you understand what they mean.
It’s a quick read and very easy to go through in one day. Some developers may like the terse writing style but others may want a longer tome of TypeScript. For the latter this book will disappoint, but for the former this is a great intro to writing TypeScript code.
It’s meant to be a much better companion to the average developer who finds the TypeScript documentation to be lacking in quality or detail. I would highly recommend this online book as your first starting point—specially if you’re on the fence about learning TypeScript.
The lessons are clear and should help everyone catch up on their TypeScript basics. Plus for the price of free you really can’t complain.
When it comes to detailed guides on frontend development you can’t get much better than Pro AngularJS by Adam Freeman. It’s almost 700 pages long and covers both AngularJS + TypeScript in a series of live examples.
The early chapters sprinkle more advanced topics into the code but don’t explain them until later. This can be frustrating for new developers. But if you’re willing to go through the entire book you’ll come out with advanced knowledge of AngularJS, both syntactically and pragmatically in real-world situations.
Since TypeScript now comes bundled with AngularJS many developers will be clamoring to learn both at the same time. Pro AngularJS is a nice resource to nail both with one stone. But if you just want to pickup Angular check out our resource guide for the best stuff to teach yourself Angular 2.
This final resource is the newest in the entire list. First released in August 2016, TypeScript Design Patterns teaches how to implement TypeScript code so that it’s readable & reuseable.
You’ll go far beyond the basic syntax rules by covering best practices for any type of web application. When developing a new project you’ll always want to consider how it would scale and how to structure the codebase. As you encounter bugs and look to solve them you can rely on design patterns to aide the process. Each pattern in this book comes with a live example so you can follow along and practice applying them to real situations.
Generally speaking this book is for intermediate-to-advanced TypeScript developers who already know how it works, but want to improve their workflow. It’s one of the best advanced TS books on the market and it’s a must-read if you wanna take TypeScript to the next level.
While this post focuses on a handful of useful TypeScript books, not all of them will be useful to you. It’s important to gauge your skill level and sort through the books that might offer you the most value.