Автор: Adam Freeman
Издательство: Manning Publications
Год: 2023
Страниц: 729
Язык: английский
Формат: pdf , epub
Размер: 10.1 MB
Now in its third edition, this bestselling guide to TypeScript takes you through the nuts and bolts of the language. No frills, no fuss, just TypeScript essentials!
Inside Essential TypeScript 5, Third Edition you’ll learn how to
Configure the TypeScript development tools
Use type annotations
Create strongly-typed functions and classes
Use generic types
Use type guards to determine types at runtime
Create and consume type declaration files
Use TypeScript to create web applications with Angular and React
Essential TypeScript 5, Third Edition teaches you how to get the most out of TypeScript 5 for a consistent, dependable development experience. You’ll start with a proper understanding of the jаvascript type system that will make using TypeScript so much easier. On that solid foundation, you’ll build your understanding of TypeScript development, following a hands-on learning path all the way to TypeScript’s advanced features.
TypeScript is one of the most misunderstood technologies in use today. Many developers adopt TypeScript believing it to be a C#/jаvascript hybrid, given the similarity in syntax and the fact that TypeScript is produced by Microsoft. But the reality is entirely different: TypeScript doesn’t alter the way that jаvascript works – it makes it easier to describe how jаvascript code uses data types and highlights possible problems. That may not seem like a huge benefit, but the jаvascript type system causes endless confusion and TypeScript makes it easier to write complex code that can be readily understood by others, and which has fewer bugs when it is deployed.
The link between TypeScript and jаvascript is so fundamental that this book includes a two-chapter primer that explains how the jаvascript type system works, which provides the foundation for understanding the features that TypeScript provides. Following the primer, I explain how the TypeScript development tools work, and then begin describing the TypeScript features in depth. The final part of this book shows TypeScript in context, creating the same web application in three different ways: using just TypeScript and jаvascript; using Angular; and using React.
about the technology
TypeScript enhances jаvascript with static typing whilst still keeping all the JS flexibility you know and love. It’s the perfect choice for any developer looking to improve the predictability and reliability of their code. Learning TypeScript can help you catch errors earlier in the development process, write cleaner and more expressive code, and give yourself a smoother path to developing amazing apps.
about the book
Essential TypeScript 5 is a fully updated third edition of a classic Adam Freeman bestseller. It provides full coverage of TypeScript 5, including new features like decorators. You’ll begin with the hows-and-whys of TypeScript, then quickly progress to practical applications of static types, and building apps with React and Angular. No wasted pages! Each chapter is focused on the absolute essentials you’ll need to troubleshoot common problems, make the most of key features, and deliver optimal performance with TypeScript.
about the reader
For jаvascript developers. No previous experience of TypeScript required.
about the author
Adam Freeman is an experienced IT professional who started his career as a programmer. He has held senior positions in a range of companies, most recently serving as Chief Technology Officer and Chief Operating Officer of a global bank. He has written 50 programming books, focusing mostly on web application development.
Скачать Essential TypeScript 5, Third Edition (MEAP v4)