Essential TypeScript 4
Год издания: 2021
Автор: Freeman A.
Издательство: Apress
ISBN: 978-1-4842-7011-0
Язык: Английский
Формат: PDF
Качество: Издательский макет или текст (eBook)
Интерактивное оглавление: Да
Количество страниц: 563
Описание: Learn the essentials and more of TypeScript, a popular superset of the javascript language that adds support for static typing. TypeScript combines the typing features of C# or Java with the flexibility of javascript, reducing typing errors and providing an easier path to javascript development.
Author Adam Freeman explains how to get the most from TypeScript 4 in this second edition of his best-selling book.
He begins by describing the TypeScript language and the benefits it offers and then shows you how to use TypeScript in real-world scenarios, including development with the DOM API, and popular frameworks such as Angular and React. He starts from the nuts-and-bolts and builds up to the most advanced and sophisticated features.
Each topic is covered clearly and concisely, and is packed with the details you need to be effective. The most important features are given a no-nonsense, in-depth treatment and chapters include common problems and teach you how to avoid them.
What You Will Learn
- Gain a solid understanding of the TypeScript language and tools
- Use TypeScript for client- and server-side development
- Extend and customize TypeScript
- Test your TypeScript code
- Apply TypeScript with the DOM API, Angular, React, and Vue.js
Оглавление
About the Author xix
About the Technical Reviewer xxi
Part I: Getting Started with TypeScript 1
Chapter 1: Your First TypeScript Application 3
Chapter 2: Understanding TypeScript 35
Chapter 3: JavaScript Primer, Part 1 43
Chapter 4: JavaScript Primer, Part 2 77
Chapter 5: Using the TypeScript Compiler 107
Chapter 6: Testing and Debugging TypeScript 131
Part II: Working with TypeScript 147
Chapter 7: Understanding Static Types 149
Chapter 8: Using Functions 177
Chapter 9: Using Arrays, Tuples, and Enums 195
Chapter 10: Working with Objects 223
Chapter 11: Working with Classes and Interfaces 251
Chapter 12: Using Generic Types 287
Chapter 13: Advanced Generic Types 315
Chapter 14: Working with JavaScript 349
Part III: Creating Web Applications 375
Chapter 15: Creating a Stand-Alone Web App, Part 1 377
Chapter 16: Creating a Stand-Alone Web App, Part 2 407
Chapter 17: Creating an Angular App, Part 1 435
Chapter 18: Creating an Angular App, Part 2 457
Chapter 19: Creating a React App 473
Chapter 20: Creating a React App, Part 2 497
Chapter 21: Creating a Vue.js App, Part 1 515
Chapter 22: Creating a Vue.js App, Part 2 541
Index 557