Mastering TypeScript: Write TypeScript fluently and without fighting the type system

Paperback Published on: 15/05/2026
Price: £37.99
Free UK delivery on orders over £25
Make and edit your lists in your account
No stock available in any shop.
No stock available in any shop.

Synopsis

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.

Publisher information

  • Publisher: Packt Publishing Limited
  • ISBN: 9781836647737
  • Dimensions: 235 x 191 mm
  • Languages: English

Customer Reviews