Member-only story

TypeScript Is Getting a Big Update!

Manpreet Singh
2 min readJan 23, 2022

--

Welcome back! Typescript is an awesome programming language with a ton of capability, if you’re new to Typescript, check out the link below to learn more about it:

It looks like Typescript is getting another big update very soon, this specific update is Typescript 4.6, and you can install it now via their beta! Here are the full instructions on how to do this:

This update is bringing alot of cool changes, first of all, it looks like we are going to be allowed to code in constructors before super():

class Base {
// ...
}

class Derived extends Base {
someProperty = true;

constructor() {
// error!
// have to call 'super()' first because it needs to initialize 'someProperty'.
doSomeStuff();
super();
}
}

--

--

Manpreet Singh
Manpreet Singh

Responses (1)