First, the book gently explores TypeScript, from basic ideas to common techniques and advanced strategies. Then, right around the midpoint, we’ll take the leap into structural type systems and why they are so useful for your work.
We’ll dive into working with types, typing functions, union and intersection types, generics, conditional types and wrap up with thinking in types.
If you ever find yourself:
then TypeScript will do right by you.
Programming books have a tendency to become outdated very quickly. When Stefan set out to
write this book, his most important goal was that it had to be timeless. TypeScript gets at least two major releases
a year, so there are new features and changes coming regularly.
That’s why the book focuses on the long-lasting aspects of the
type system. You’ll understand how TypeScript works, and how to apply new features long after you’ve turned the last page of this book.
The book is split into 7 chapters.
1. TypeScript for Smashing People
2. Working with Types
4. Union and Intersection Types
6. Conditional Types
7. Thinking in Types
— Natalie Marleny, Application Engineer
“Stefan Baumgartner’s book finally made me want to use TypeScript. Until now, I didn’t understand why I should use TypeScript. Without knowing the core principles, it made things more complicated for me. After reading this book, I know how to use the power of TypeScript to my advantage.”
— Vanessa Böhner, Software Developer and Chapter Leader at Front-End Foxes
“Stefan walks you through everything from basic types to advanced concepts like the
inferkeyword in a clear and easy to understand way. The book is packed with many real world examples and great tips, transforming you into a TypeScript expert by the end of it. Highly recommended read!”
— Marvin Hagemeister, Creator of Preact-Devtools
452 pages. The eBook is already available (PDF, ePUB, Amazon Kindle). We’ll ship printed copies in November 2020. Written by Stefan Baumgartner. Designed by Rob Draper.
Stefan Baumgartner is a software architect based in Austria. He has published online since the late 1990s, writing for Manning, Smashing Magazine, and A List Apart. He organizes ScriptConf, TSConf:EU, and DevOne in Linz, and co-hosts the German-language Working Draft podcast.
Producing a book takes quite a bit of time, and we couldn’t pull it off without the support of our wonderful community. A huge shout-out to Smashing Members for their ongoing support in our adventures. As a result, the eBook is and always will be free for Smashing Members. Plus, Members get a friendly discount when purchasing their printed copy.
Stay smashing, and thank you for your ongoing support, everyone!
Promoting best practices and providing you with practical tips to master your daily coding and design challenges has always been (and will be) at the core of everything we do at Smashing.
In the past few years, we were very lucky to have worked together with some talented, caring people from the web community to publish their wealth of experience as printed books that stand the test of time. Paul and Adam are some of these people. Have you checked out their books already?