TypeScript

The official blog of the TypeScript team.

Latest posts

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...

Announcing TypeScript 4.2
Feb 23, 2021
Post comments count 3
Post likes count 0

Announcing TypeScript 4.2

Daniel Rosenwasser
Daniel Rosenwasser

Today we're excited to announce the release of TypeScript 4.2! For those who aren't familiar with TypeScript, it's an extension to JavaScript that adds static types and type-checking. With types, you can state exactly what your functions take, and what they'll return. You can then use the TypeScript type-checker to catch lots of common mistakes like typos, forgetting to handle and , and more. Because TypeScript code just looks like JavaScript with types, everything you know about JavaScript still applies. When you need, your types can be stripped out, leaving you with clean, readable, runnable JavaScript that...

Announcing TypeScript 4.2 RC
Feb 11, 2021
Post comments count 1
Post likes count 0

Announcing TypeScript 4.2 RC

Daniel Rosenwasser
Daniel Rosenwasser

Today we're excited to announce our Release Candidate of TypeScript 4.2! Between now and the stable release of TypeScript 4.2, 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 take a look at what's in store for TypeScript 4.2! Leading/Middle Rest Elements in Tuple Types In TypeScript, tuple types are meant to model arrays with specific lengths and element types. Over time, TypeScript's tuple types have become more and more sophisticat...

Announcing TypeScript 4.2 Beta
Jan 12, 2021
Post comments count 0
Post likes count 0

Announcing TypeScript 4.2 Beta

Daniel Rosenwasser
Daniel Rosenwasser

Today we're excited to announce the availability of TypeScript 4.2 Beta! 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 take a look at what's in store for TypeScript 4.2! Leading/Middle Rest Elements in Tuple Types In TypeScript, tuple types are meant to model arrays with specific lengths and element types. Over time, TypeScript's tuple types have become more and more sophisticated, since they're also used to model things like parameter lists in JavaScript. As a result, they can have optio...

Announcing TypeScript 4.1
Nov 19, 2020
Post comments count 11
Post likes count 0

Announcing TypeScript 4.1

Daniel Rosenwasser
Daniel Rosenwasser

Today we're proud to release TypeScript 4.1! If you're unfamiliar with TypeScript, it's a language that builds on JavaScript by adding syntax for type declarations and annotations. This syntax can be used by the TypeScript compiler to type-check our code, and then output clean readable JavaScript that runs on lots of different runtimes. Static type-checking can tell us about errors in our code before we even run it, or before we even save our files thanks to TypeScript's rich editing functionality across editors. But beyond error-checking, TypeScript powers things like completions, quick fixes, and refactoring...

Announcing TypeScript 4.1 RC
Nov 3, 2020
Post comments count 0
Post likes count 0

Announcing TypeScript 4.1 RC

Daniel Rosenwasser
Daniel Rosenwasser

Today we are making the Release Candidate (RC) of TypeScript 4.1 available. 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 For this release, we have some exciting new features, new checking flags, editor productivity updates, and speed improvements. Let's get a look at what 4.1 has in store for us! Template Literal Types String literal types in TypeScript allow us to model functions and APIs that expect a set of specific strings. This is pretty nice because ...

Announcing TypeScript 4.1 Beta
Sep 18, 2020
Post comments count 7
Post likes count 0

Announcing TypeScript 4.1 Beta

Daniel Rosenwasser
Daniel Rosenwasser

Today we're announcing the availability of TypeScript 4.1 Beta! 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 For this release, we have some exciting new features, new checking flags, editor productivity updates, and speed improvements. Let's get a look at what 4.1 has in store for us! Template Literal Types String literal types in TypeScript allow us to model functions and APIs that expect a set of specific strings. This is pretty nice because string l...

Announcing TypeScript 4.0
Aug 20, 2020
Post comments count 2
Post likes count 0

Announcing TypeScript 4.0

Daniel Rosenwasser
Daniel Rosenwasser

Today we are thrilled to announce the availability of TypeScript 4.0! This version of the language represents our next generation of TypeScript releases, as we dive deeper into expressivity, productivity, and scalability. If you're not familiar with TypeScript, it's a language that builds on top of JavaScript by adding syntax for static types. The idea is that by writing down the types of your values and where they're used, you can use TypeScript to type-check your code and tell you about mistakes before you run your code (and even before saving your file). You can then use the TypeScript compiler to then stri...