TypeScript

The official blog of the TypeScript team.

Latest posts

Announcing TypeScript 4.5 Beta
Oct 1, 2021
Post comments count 5
Post likes count 0

Announcing TypeScript 4.5 Beta

Daniel Rosenwasser
Daniel Rosenwasser

Today we are excited to announce the beta release of TypeScript 4.5! To get started using the beta, you can get it through NuGet, or use npm with the following command: You can also get editor support by Some major highlights of TypeScript 4.5 are: ECMAScript Module Support in Node.js For the last few years, Node.js has been working to support running ECMAScript modules (ESM). This has been a very difficult feature to support, since the foundation of the Node.js ecosystem is built on a different module system called CommonJS (CJS). I...

Announcing TypeScript 4.4
Aug 26, 2021
Post comments count 4
Post likes count 0

Announcing TypeScript 4.4

Daniel Rosenwasser
Daniel Rosenwasser

Today we're excited to announce the availability of TypeScript 4.4! If you haven't heard of TypeScript yet, it's a language that builds on JavaScript by adding syntax for static types. Tools like the TypeScript compiler just erase those types, leaving you with clean readable JavaScript that you can run anywhere; but those types are there to be type-checked! Types make your intentions explicit, and tools can read and understand them to catch errors before you even run your code. By checking your types, TypeScript can catch errors like typos, logic errors, and more! Beyond catching errors, TypeScript also uses t...

Announcing the New TypeScript Homepage
Aug 24, 2021
Post comments count 5
Post likes count 0

Announcing the New TypeScript Homepage

Orta Therox
Orta Therox

Hey folks, we're happy to announce that the next iteration version of the TypeScript Website has been switched on for the TypeScript homepage. Last August we deployed a re-design and re-architecture of the entire TypeScript web presence. The goals were to provide new foundations for documenting TypeScript, re-organize our information architecture and to have a cohesive design wrapping it together. The transition to the new site aimed for evolution over revolution with all previous URIs still accounted for because "cool URIs don't change", and most decisions about how to describe TypeScript staying reasonably con...

Announcing TypeScript 4.4 RC
Aug 12, 2021
Post comments count 0
Post likes count 0

Announcing TypeScript 4.4 RC

Daniel Rosenwasser
Daniel Rosenwasser

Today we're excited to announce our Release Candidate (RC) of TypeScript 4.4! Between now and the stable release of TypeScript 4.4, we expect no further changes apart from critical bug fixes. To get started using the RC, you can get it through NuGet, or use npm with the following command: You can also get editor support by Some major highlights of TypeScript 4.4 are: Let's explore these in more detail! Control Flow Analysis of Aliased Conditions and Discriminants In JavaScript, we often have to probe a variable in different ways to see if it ha...

Announcing TypeScript 4.4 Beta
Jul 1, 2021
Post comments count 6
Post likes count 0

Announcing TypeScript 4.4 Beta

Daniel Rosenwasser
Daniel Rosenwasser

Today we are excited to announce the beta release of TypeScript 4.4! To get started using the beta, you can get it through NuGet, or use npm with the following command: You can also get editor support by Some major highlights of TypeScript 4.4 are: Let's explore these in more detail! Control Flow Analysis of Aliased Conditions In JavaScript, we often have to probe a variable in different ways to see if it has a more specific type that we can use. TypeScript understands these checks and calls them type guards. Instead of having to convince TypeScrip...

Announcing TypeScript 4.3
May 26, 2021
Post comments count 0
Post likes count 0

Announcing TypeScript 4.3

Daniel Rosenwasser
Daniel Rosenwasser

Today we're excited to announce the availability of TypeScript 4.3! If you're not yet familiar with TypeScript, it's a language that builds on JavaScript by adding syntax for static types. Tools like the TypeScript compiler can just erase TypeScript syntax, leaving you with clean readable JavaScript that works anywhere. So what's that syntax adding if it just gets erased away? Well, when you add types throughout your code, you're making your intentions explicit, and TypeScript can type-check your code to catch mistakes like typos, logic errors, and more! TypeScript also uses those types to power editor tooling...

Announcing TypeScript 4.3 RC
May 12, 2021
Post comments count 4
Post likes count 0

Announcing TypeScript 4.3 RC

Daniel Rosenwasser
Daniel Rosenwasser

Today we're excited to announce our Release Candidate (RC) of TypeScript 4.3! Between now and the stable release of TypeScript 4.3, we expect no further changes apart from critical bug fixes. To get started using the RC, you can get it through NuGet, or use npm with the following command: You can also get editor support by Let's dive in to what TypeScript 4.3 brings! Separate Write Types on Properties In JavaScript, it's pretty common for APIs to convert values that are passed in before storing them. This often happens with g...

Announcing TypeScript 4.3 Beta
Apr 1, 2021
Post comments count 5
Post likes count 0

Announcing TypeScript 4.3 Beta

Daniel Rosenwasser
Daniel Rosenwasser

Today we're excited to announce our Beta of TypeScript 4.3! To get started using the beta, you can get it through NuGet, or use npm with the following command: You can also get editor support by Let's dive in to what TypeScript 4.3 brings! Separate Write Types on Properties In JavaScript, it's pretty common for APIs to convert values that are passed in before storing them. This often happens with getters and setters too. For example, let's imagine we've got a class with a setter that always converts a value into a before saving it in a private field. How would we type this JavaScr...

Announcing the New TypeScript Handbook
Mar 5, 2021
Post comments count 5
Post likes count 0

Announcing the New TypeScript Handbook

Orta Therox
Orta Therox

Hey folks, we're happy to announce that a fresh re-write of the TypeScript Handbook is out of beta and is now our website's primary resource for learning TypeScript! Read the handbook on Web / Epub / PDF In the last year, the TypeScript team has heavily focused on ramping up the scale, modernity and scope of our documentation. One of the most critical sections of our documentation is the handbook, a guided tour through the sort of TypeScript code you'll see in most codebases. We want the handbook to feel like the first recommendation you give for learning TypeScript. With the release of the revised website l...