Mastering TypeScript (5 Revised edition)
Write TypeScript fluently and without fighting the type system

By (author) Nathan Rozentals,Maina Wycliffe

ISBN13: 9781836647737

Imprint: Packt Publishing Limited

Publisher: Packt Publishing Limited

Format: Paperback / softback

Published: 07/11/2025

Availability: Available

Description
Master the TypeScript language – form mental models of the type system, read and understand errors, and migrate from JavaScript to TypeScript competently. Purchase of the print or Kindle book includes a free eBook in PDF format. Key Features Explore TypeScript’s key elements and advanced language features Dive deep into type inference, type design, and building custom types Form mental models to help you write TypeScript more fluently Book DescriptionIf you’re a developer who wants to learn how to work with TypeScript instead of fighting it, this is the book for you – no JavaScript knowledge required. Mastering TypeScript will get you up and running with TypeScript quickly, introduce core concepts, and dive deep into the workings of the type system. You’ll learn how to control your compiler options, work with types from third-party sources, and use advanced features such as decorators and generics. This fifth edition has been reconceived with new chapters on JavaScript to TypeScript migration, type narrowing, reading and understanding TypeScript errors, and more. It also includes a set of brand-new sample projects that put TypeScript in practical and relatable perspective.What you will learn Learn about core TypeScript language features Use the type system to write better applications with fewer errors Read and understand common and confusing TypeScript errors Work with types you don't own, from browser APIs, Node APIs, and JavaScript APIs Configure the TypeScript compiler using best practices See TypeScript in the context of functional and object-oriented programming Explore advanced types and the art of type manipulation Migrate code from JavaScript to TypeScript without relying on the any type Who this book is forThis book is a guide for any developer who wants to learn TypeScript. No prior knowledge of JavaScript is required, but some prior programming experience is assumed. If you are already an experienced TypeScript or JavaScript developer, this book will take your skills to the next level.
Table of Contents Introduction to TypeScript Up and Running Quickly Exploring the Type System Type Annotations and Assertions Type Inference Arrays and Objects Type Design Type Narrowing TypeScript Configuration Types from Third-Party Sources Reading and Understanding TypeScript Errors Functional Programming Object-Oriented Programming Advanced Types and Type Manipulation Decorators Migrating from JavaScript to TypeScript
  • Computer programming / software development
  • Web programming
  • General (US: Trade)
Height:
Width:
Spine:
Weight:0.00
List Price: £37.99