Essential TypeScript 5, Third Edition
By Adam Freeman
- Release Date: 2023-12-19
- Genre: Programming
Description
TypeScript enhances JavaScript with static typing, while 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. Essential TypeScript 5, Third Edition teaches you how to get the most out of TypeScript 5 for a consistent, dependable development experience.
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
• Create and consume type declaration files
• Use TypeScript to create web applications with Angular and React
The book starts you off with a proper understanding of the JavaScript 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.
About the technology
TypeScript is a popular superset of JavaScript that adds support for static typing. TypeScript’s typing features, which will be instantly familiar to C# or Java programmers, help you reduce errors and improve the overall quality of your JavaScript code.
About the book
Essential TypeScript 5 is a fully updated third edition of the 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. No wasted pages! Each chapter is focused on the skills you need to write awesome web apps.
What's inside
• Configure your development tools
• Create strongly typed functions and classes
• Use generic types, type annotations, and type guards
• Create and consume type declaration files
About the reader
For JavaScript developers. No previous experience with TypeScript required.
About the author
Adam Freeman has held senior positions in a range of companies, most recently serving as CTO and COO of a global bank. He has written 50 programming books. The technical editor on this book is Fabio Claudio Ferracchiati.
Table of Contents
1 Understanding TypeScript
Part 1
2 Your first TypeScript application
3 JavaScript primer, part 1
4 JavaScript primer, part 2
5 Using the TypeScript compiler
6 Testing and debugging TypeScript
Part 2
7 Understanding static types
8 Using functions
9 Using arrays, tuples, and enums
10 Working with objects
11 Working with classes and interfaces
12 Using generic types
13 Advanced generic types
14 Using decorators
15 Working with JavaScript
Part 3
16 Creating a stand-alone web app, part 1
17 Creating a stand-alone web app, part 2
18 Creating an Angular app, part 1
19 Creating an Angular app, part 2
20 Creating a React app
21 Creating a React app, part 2