Book Image

Mastering TypeScript - Fourth Edition

By : Nathan Rozentals
Book Image

Mastering TypeScript - Fourth Edition

By: Nathan Rozentals

Overview of this book

TypeScript is both a language and a set of tools to generate JavaScript, designed by Anders Hejlsberg at Microsoft to help developers write enterprise-scale JavaScript. Mastering Typescript is a golden standard for budding and experienced developers. With a structured approach that will get you up and running with Typescript quickly, this book will introduce core concepts, then build on them to help you understand (and apply) the more advanced language features. You’ll learn by doing while acquiring the best programming practices along the way. This fourth edition also covers a variety of modern JavaScript and TypeScript frameworks, comparing their strengths and weaknesses. You'll explore Angular, React, Vue, RxJs, Express, NodeJS, and others. You'll get up to speed with unit and integration testing, data transformation, serverless technologies, and asynchronous programming. Next, you’ll learn how to integrate with existing JavaScript libraries, control your compiler options, and use decorators and generics. By the end of the book, you will have built a comprehensive set of web applications, having integrated them into a single cohesive website using micro front-end techniques. This book is about learning the language, understanding when to apply its features, and selecting the framework that fits your real-world project perfectly.
Table of Contents (19 chapters)
Other Books You May Enjoy



abstract class 100

methods 101, 102

acceptance tests 254

advanced type inference 122

conditional types 126, 127

mapped types 123

partial type 124

Angular application

building 300

child components 309, 310, 311, 312

Dependency Injection (DI) 308, 309

DOM events 301, 302, 303, 304

EventEmitter class 304, 305, 306

services 306, 307

Angular CLI 290

Angular forms

about 312, 313

Reactive forms 313, 315

unit testing 320, 321, 322, 323

Angular Material 295, 296, 297

Angular modules 293, 294, 295

Angular setup 290, 291

application structure 291, 292, 293

Angular unit testing 318, 319, 320

any type 28, 29


building 426

summary 451, 452

application API endpoints 436, 437


about 151

versus callbacks 156, 157

versus promises 156, 157

asynchronous tests 275, 276, 277

async await, using 278, 279, 280

done function, using 277, 278