Microsoft Releases TypeScript 4.0

Posted on August 21, 2020 by Paul Thurrott in Dev with 2 Comments

Microsoft has announced the release of TypeScript 4.0, the latest major version of its open-source superset of JavaScript.

“TypeScript 4.0 represents our next generation of TypeScript releases, as we dive deeper into expressivity, productivity, and scalability,” Microsoft’s Daniel Rosenwasser writes in the announcement post. “With TypeScript 4.0, there are no major breaking changes. In fact, if you’re new to the language, now is the best time to start using it.”

For those unfamiliar, Rosenwasser has a nice explanation of the why of TypeScript:

“TypeScript is a language that builds on top of JavaScript by adding syntax for static types,” he writes. “The idea is that by writing down the types of your values and where they’re used, you can use TypeScript to type-check your code and tell you about mistakes before you run your code (and even before saving your file). You can then use the TypeScript compiler to then strip away types from your code, and leaving you with clean, readable JavaScript that runs anywhere. Beyond checking, TypeScript also uses static types to power great editor tooling like auto-completion, code navigation, refactorings, and more. In fact, if you’ve used JavaScript in an editor like Visual Studio Code or Visual Studio, you’ve already been using an experience powered by types and TypeScript.”

TypeScript was created by Anders Hejlsberg, my personal hero and the lead architect of C#, Delphi/Object Pascal, and Turbo Pascal, so he’s somewhat experienced designing programming languages. It answers a real problem with JavaScript and, as such, its popularity has surged in recent years. The language saw over 50 million monthly downloads for the first time in July, and it is now ranked as the second-most-loved language by StackOverflow.

You can learn more about TypeScript on the TypeScript website.

Tagged with ,

Elevate the Conversation!

Join Thurrott Premium to enjoy our Premium comments.

Premium member comments on news posts will feature an elevated status that increases their visibility. This tab would allow you to participate in Premium comments with other premium members. Register to join the other Premium members in elevating the conversation!

Register or Subscribe

Join the discussion!

BECOME A THURROTT MEMBER:

Don't have a login but want to join the conversation? Become a Thurrott Premium or Basic User to participate

Register