Codesandbox-client: Upgrade TypeScript to 3.7 or greater

Created on 28 Feb 2020  路  5Comments  路  Source: codesandbox/codesandbox-client

馃寛 Upgrade TypeScript version to 3.7 or greater

TS 3.7 brings along some MAJOR improvements to the language, including:

  • Optional Chaining
  • Nullish Coalescing
  • Assertion Functions
  • Recursive Type Aliases (my personal favorite)

My imported project doesn't work properly because I make use of recursive types and assertion functions: https://codesandbox.io/s/react-typescript-type-safe-redux-with-immerreducer-tdl7w


Ship TypeScript 3.7 or greater with the editor, please.

Most helpful comment

I wonder, would it be impossible to somehow enable the use of TypeScript version installed through package.json? The VSCode allows but this option is missing in CS for some reason. That way you wouldn't need to update VSCode with every new TS version that brings important changes.

image

All 5 comments

What is blocking that from being possible? How can we help?

The version of TypeScript comes from VS Code, so we need to upgrade the version of VS Code we've integrated in order to enable this. As you might imagine, that's a significant amount of work. We've made good progress and I think we'll be able to do this soon, though I don't have dates to share yet.

Thanks for the explanation! All the best with it :)

I wonder, would it be impossible to somehow enable the use of TypeScript version installed through package.json? The VSCode allows but this option is missing in CS for some reason. That way you wouldn't need to update VSCode with every new TS version that brings important changes.

image

Heyo! We've updated TypeScript to v3.8.3 馃帀! I like your suggestion @FredyC, this is definitely possible, I'll create an issue for it. https://github.com/codesandbox/codesandbox-client/issues/3904

In the meantime, we can close this one!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MarcelloTheArcane picture MarcelloTheArcane  路  3Comments

Haroenv picture Haroenv  路  3Comments

zocky picture zocky  路  3Comments

kentcdodds picture kentcdodds  路  3Comments

wojciechczerniak picture wojciechczerniak  路  3Comments