What’s new with TypeScript 4.0 rc

Sébastien Dubois
6 min readAug 8, 2020

TypeScript 4.0 is almost there. The release candidate is here!

In this article, I’ll go over everything that’s been announced so far.

I’ll only cover the language features. I might write additional posts to cover what’s also coming regarding editor productivity, performance, and bug fixes.

Please keep in mind that this is article is based on release candidate release notes and a roadmap, it doesn’t mean that everything will actually be part of the final release as is.

Class property inference from constructors

Currently, when tsc is configured innoImplicitAny mode, the following TS code doesn’t compile:

Now that this PR has been merged and thus, as of TS 4.0, the code above will compile and TypeScript will infer the type of x to be string | boolean.

This is one more case where TypeScript’s type inference will help us out!

Short-circuiting assignment operators

--

--

Sébastien Dubois
Sébastien Dubois

Written by Sébastien Dubois

PKM Systems Architect Helping Knowledge Workers save 10+ hours/week 1K+ Happy customers ❤️ 🚀 https://developassion.gumroad.com 💌 https://dSebastien.net