Tag: TypeScript

Web

TypeScript 2.0 is now available

MSPUImage

Today Microsoft released the final version of TypeScript 2.0, adding new features and improvements. TypeScript is what Microsoft likes to calls “JavaScript that scales” – providing better performance and scalability for large applications, along with developer goodness of a typed language.

Here is a list of some of the new features found in TypeScript 2.0:

  • Simplified Declaration File (.d.ts) Acquisition
  • Non-nullable Types
  • Control Flow Analysis for Types
  • Easier Module Declarations
  • Async/Await down level support
  • Readonly Modifier

TypeScript’s future looks promising. In a blog post by the TypeScript team…

“Going forward, we will continue to work with our partners and the community to evolve TypeScript’s type system to allow users to further express JavaScript in a statically typed fashion. In addition, we will focus on enhancing the TypeScript language service and set of tooling features so that developer tools become smarter and further boost developer productivity.”

TypeScript 2.0 is available now to download with Visual Studio 2015 Update 3. You can also use npm to install TypeScript 2.0 by running the following command:

npm install –g typescript@2.0

 

Reference

https://blogs.msdn.microsoft.com/typescript/2016/09/22/announcing-typescript-2-0/

DevelopmentWeb

TypeScript – JavaScript for Modern Apps

Last week Microsoft announced a superset of JavaScript called TypeScript, which is aimed at solving a very specific problem…getting JavaScript to scale.

“Today, we’re introducing a new programming language that solves a very specific problem – getting JavaScript development to scale,” Microsoft corporate vice president Soma Somasegar writes on his blog. “That language is TypeScript. You can learn more about the TypeScript project, download an early preview, read and discuss the language specification, explore the online playground, and peruse the source of the compiler (on the TypeScript project site on CodePlex, with git).”

TypeScript is a programming language that makes it easier to write cross-platform, application scale, JavaScript that runs in any browser or in any host.  Microsoft Technical Fellow Anders Hejlsberg explains how TypeScript, which is a typed superset of JavaScript that compiles to idiomatic (normal) JavaScript, can dramatically improve your productivity by enabling rich tooling experiences, all while maintaining your existing code and continuing to use the same JavaScript libraries you already love.

TypeScript adds some great functionality like type checking, static analysis, explicit interfaces and best practices. TypeScript is also an open, standards-based and 100% compatible with JavaScript.

Here’s a good overview of and introduction to TypeScript by Anders Hejlsberg:

sshot-352

This all seems good and only time and adoption will tells us whether TypeScript can truly scale past the success of JavaScript.