What’s new in TypeScript 4.0?

Support for Variadic Tuple Types

Labeled Tuple Elements

Implied property type from constructors

Other 4.0 TypeScript Changes

  • For large TypeScript projects using VSCode there were significant loading delays upward of one minute, this has been shaved down to a couple seconds by a partial loading experience in which only the current files the editor has open will be processed until the full language service is ready.
  • Smarter auto imports have been implemented to auto-include type dependencies that are not in the node_modules/@types folder. Before this, auto-imports from packages not in the node_modules/@types folder only worked after there was at least one explicit import somewhere else in the project.
  • Speed improvements when using build mode with --incremental and --noEmitOnError flags enabled, previously the build time with these flags has been very slow, as there was no information that was cached in the .tsbuildinfo file.
  • The JS Doc label /** @deprecated */ can now be used to signify to editors that certain declarations are deprecated. For instance, in VSCode the value would be shown with a strike-though.




Modernizing Apps, Tools & Teams | sitepen.com | Twitter: @sitepen

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Instagram-clone in 30 minutes using Bravo Studio and Xano

[Action required] Your RSS.app Trial has Expired — Thu Jul 01 2021

Introduction to Angular —NgRx

Nullish Coalescing | ES2020

Download In ^*PDF JavaScript for Kids: A Playful Introduction to Programming Read #book !ePub

Create a Comment Box and Comment Posting Function Using React JS

JavaScript Classes: Let’s Know Behind the Scenes

Sending your first push notification

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


Modernizing Apps, Tools & Teams | sitepen.com | Twitter: @sitepen

More from Medium

Simple implementation of drag and drop between lists using React and Typescript without additional…

Typescript Loop in Certain Time ⌚

Frontend Caching with Redux Toolkit Query

Creating and Testing Streamlined Components in ReactJS Using Hooks