News

What's New in TypeScript 3.4

TypeScript 3.4 is out with the usual array of new features, of which a new --incremental flag can lead to faster project builds after the first such build.

Subsequent builds are speeded up by relying upon information stored from the latest compilation to optimize the new build. This functionality was available previously in some cases via the --watch mode that could obviate the need for full type-checks and code re-emits, but that required more machinations on the part of the developer.

"Over the past few months, we’ve been working to see if there’s a way to save the appropriate information from --watch mode to a file and use it from build to build," program manager Daniel Rosenwasser said in a blog post today (March 29).

"TypeScript 3.4 introduces a new flag called --incremental which tells TypeScript to save information about the project graph from the last compilation. The next time TypeScript is invoked with --incremental, it will use that information to detect the least costly way to type-check and emit changes to your project."

He said using the --incremental flag on Microsoft's Visual Studio Code open source project -- which is written in TypeScript -- reduced build times to about one-fifth of the first build.

Other new features highlighted in Rosenwasser's post include:

He also lists breaking changes.

Going forward, the iteration plan for TypeScript 3.5 predicts a May 30 release date. The TypeScript roadmap shows what's in store for that release, along with a "future" section that lists:
  • Variadic types
  • Investigate nominal typing support
  • Flattening declarations
  • Implement ES Decorator proposal
  • Implement ES Private Fields
  • Investigate Ambient, Deprecated, and Conditional decorators
  • Investigate partial type argument inference
  • Investigate stricter types for IteratorResult
  • Quick fix to Scaffold local @types packages
  • Investigate error messages in haiku or iambic pentameter
  • Decorators for function expressions/arrow functions

The open source TypeScript is becoming an increasingly popular programming language, building on JavaScript by adding optional static typing, which can help reduce errors among other benefits.

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus

Featured

  • Full Stack Hands-On Development with .NET

    In the fast-paced realm of modern software development, proficiency across a full stack of technologies is not just beneficial, it's essential. Microsoft has an entire stack of open source development components in its .NET platform (formerly known as .NET Core) that can be used to build an end-to-end set of applications.

  • .NET-Centric Uno Platform Debuts 'Single Project' for 9 Targets

    "We've reduced the complexity of project files and eliminated the need for explicit NuGet package references, separate project libraries, or 'shared' projects."

  • Creating Reactive Applications in .NET

    In modern applications, data is being retrieved in asynchronous, real-time streams, as traditional pull requests where the clients asks for data from the server are becoming a thing of the past.

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

Subscribe on YouTube