Microsoft has released the release candidate for TypeScript 3.1, which focuses on programming enhancements, some of which can break existing code.
Where to download TypeScript
You can download the production version of TypeScript through NuGet or via NPM. To get TypeScript via NPM, use the following command:
npm install -g typescript.
Future version: What’s coming in TypeScript 3.1
Version 3.1 adds properties on function declarations. Thus, for any function or const declaration that is initialized with a function, the type-checker analyzes the containing scope to track added properties. This change is intended to make TypeScript smarter about patterns.