News for hackers. Stuff that matters.

mohamedhegazy

Re:TypeScript 2.4 on Tuesday June 27, 2017 @03:20PM (#14648428)
No. TypeScript has no dependency on classes the way Java or C# does; nor is class-oriented code the recondeded style by the TS team. As a matter of fact the typescript compiler core is all written as functions and immmutable objects with no classes (except for a polyfill for Map and Set).

TypeScript 2.3 has support for vue.js this injection style patterns (see https://github.com/Microsoft/TypeScript/pull/14141) which are way out of the realm of class-centric programming languages. Similarly the inference cabalities (expanded in 2.4) and the fundamental nature of the type system being structural rather than nominal is another give away of the language nature and direction.

So the short answer is TypeScript is a superset of JavaScript; and is as class-centric as JavaScript is.

Re:TypeScript 2.3 on Thursday April 27, 2017 @01:19PM (#14213162)
you could. jsut add `@ts-check` in your .js file, open it in VSCode, or pass it to the `tsc --allowjs a.js` on the commandline.
Re:TypeScript 2.3 on Thursday April 27, 2017 @12:54PM (#14212971)
TypeScript allows for JSDoc Comments for types in .js files with `--allowJs`. you do not need to change your code for that.

See https://github.com/Microsoft/TypeScript/wiki/JSDoc-support-i...

Re:Announcing TypeScript 2.2 on Wednesday February 22, 2017 @02:12PM (#13708278)
TypeScript has `--target ESNext` this will strip out any TypeScript-specific type annotations, and leave you with standard-track-only JS code that looks identical to your input (modulo type annotations).
Re:Announcing TypeScript 2.2 on Wednesday February 22, 2017 @01:26PM (#13707777)
Without `--strictNullChecks`, both `undefined` and `null` are in the domain of all types.
Re:Announcing TypeScript 2.1 on Wednesday December 07, 2016 @06:05PM (#13127057)
`--noImplicitAny` is the recommended flag. It is not set by default to ease the use on JS code bases.

The new changes makes `--noImplicitAny` require less type annotations; where the compiler can figure out the type of a variable through following the control flow.

Re:Announcing TypeScript 2.1 on Wednesday December 07, 2016 @05:58PM (#13127020)
You can just use `--target ESNext` and this will disable all ES features transformations and just erase types.
Re:Visual Studio Code 1.7 overloaded npmjs.org, release reverted on Wednesday November 02, 2016 @11:02PM (#12861312)
We have been testing this on insider builds of vscode for a few weeks as well as preview builds of visual studio with no issues. We were just notified today by npm that we are flooding their servers.
Re:Visual Studio Code 1.7 overloaded npmjs.org, release reverted on Wednesday November 02, 2016 @10:58PM (#12861295)
The TypeScript team will do feature work to minimize npm requests via a well-known cached list of packages.
Re:Announcing TypeScript 2.0 on Thursday September 22, 2016 @02:09PM (#12558821)
async-await transpilation for ES5/ES3 target is already available in the nightly drops of TS (`typescript@next`).
Re:Announcing TypeScript 2.0 on Thursday September 22, 2016 @01:08PM (#12558333)
async-await for ES5/ES3 is already available in `typescript@next`. give it a try.
Re:Announcing TypeScript 1.6 on Wednesday September 16, 2015 @10:36PM (#10231276)
If you are using VS 2015, TypeScript is accessible through the Extensions & updates window.

For downloading plugin for VS 2015 available at:http://www.microsoft.com/en-us/download/details.aspx?id=4859...

and VS 2013 available at: http://www.microsoft.com/en-us/download/details.aspx?id=4873...