Any programmer working with a dynamically typed language will tell you how hard it is to scale to more lines of code and more engineers. That’s why Facebook, Google, and Microsoft invented gradual static type layers for their dynamically typed JavaScript and Python code. This practical book shows you how one such type layer, TypeScript, is unique among it makes programming fun with its powerful static type system.
If you’re a programmer with intermediate JavaScript experience, author Boris Cherny will teach you how to master the TypeScript language. You’ll understand how TypeScript can help you eliminate bugs in your code and enable you to scale your code across more engineers than you could before.
In this book, you’
Start with the Learn about TypeScript’s different types and type operators, including what they’re for and how they’re usedExplore advanced Understand TypeScript’s sophisticated type system, including how to safely handle errors and build asynchronous programsDive in Use TypeScript with your favorite frontend and backend frameworks, migrate your existing JavaScript project to TypeScript, and run your TypeScript application in production
Много претензий к книге, начиная от фантазий автора о соблазнении баристы в тех литературе и прочих сомнительных и неуместных шуток, заканчивая неудачными реализациями перегрузок и плохими объяснениями статической типизации через ковариантность