Microsoft announces the latest version of TypeScript. TypeScript 3.0 can be downloaded through NuGet Package Manager Console or via NPM. Here's what's new in latest version of TypeScript 3.0.
-
Published by Kunal Chowdhury
Microsoft announces

TypeScript is an open-source programming language, which extends JavaScript to bring static types to modern JavaScript. TypeScript language is designed, developed and maintained by Microsoft to provide developers the ability to develop JavaScript applications for both client-side and server-side (Node.js) execution.
TypeScript 3.0 focuses few new improvements that include project references, expansion of spread expressions with tuple types, generic rest parameters and corresponding inference of tuple types, the unknown type, support for defaultProps in JSX and more. For a complete list, check out 'What's new in TypeScript 3.0' section.
If you are using Visual Studio to build applications for TypeScript, either upgrade to Visual Studio 2015 Update 3 or Visual Studio 2017 15.2 or higher. The latest version of Visual Studio 2017 can be found here.
TypeScript 3.0 introduces a new flexible and scalable way to structure your projects, support for operating on parameter lists, new types to enforce explicit checks, better JSX support, better error UX and most importantly some breaking changes. Here's the list of new changes in the latest version of TypeScript:
...X, where X is an array type. When no other elements are present, a rest element in a tuple is identical to itself.? postfix on element types to indicate that the element is optional.tsconfig.json file to make it easier to split your code into smaller projects.unknown type:unknown, that allows you to describe the least-capable type in TypeScript.defaultProps in JSX:LibraryManagedAttributes. It is a helper type that tells TypeScript what attributes a JSX tag accepts.LanguageService#getSourceFile has been removedTypeChecker#getSymbolDisplayBuilder and associated interfaces have been removed.escapeIdentifier and unescapeIdentifier have been removed.TypeChecker#getSuggestionForNonexistentProperty, TypeChecker#getSuggestionForNonexistentSymbol and TypeChecker#getSuggestionForNonexistentModule methods have been made internal and are no longer part of the public API.
If you are using NuGet Package Manager, you can download TypeScript 3.0 by entering the following command: Install-Package Microsoft.TypeScript.MSBuild -Version 3.0.0. If you are using NPM, you can enter the following command: npm install -g typescript to upgrade to the latest binaries. TypeScript supports a list of different editors. To use with Visual Studio, you need either Visual Studio 2015 Update 3 or Visual Studio 2017 15.2 or higher.
CodeProject
Solution Architect & Former Microsoft MVP
Kunal Chowdhury is an enterprise solution architect and former multi-year Microsoft MVP. He is the author of three technical books: Windows Presentation Foundation Development Cookbook, Mastering Visual Studio 2017, and the Mastering Visual Studio 2019.
He publishes technical articles on Kunal-Chowdhury.com.