Update Typescript Version

Folks, what’s the policy on updating the typescript version? V 3.7 contains the neat “optional chaining operator”. What’s the procedure?

[original thread by Thomas Mäder]

I found the following issue in the main repo: https://github.com/eclipse-theia/theia/issues/5260

We tried to upgrade, but there were bugs in 3.7, so ts won’t be able to compile our repo :frowning: Maybe they will be resolved in 3.8. @paul-marechal should know more.

Generally upgrading to latest typescript as soon as possible is encouraged

What were the bugs?

I tried to compile theia with 3.7.5, and it didn’t, but for good reasons, it seemed. I’ll give it a go once I’m done with my current stuff.

Promise.all returns bogus undefined values for example

some places are good reasons indeed

It seems there will be 3.8.1 release soon which supposed to fix typescript regressions.

We could also use ! operator for now to silent bogus undefined errors for Promise.all and later remove it.