News for hackers. Stuff that matters.
Re:TypeScript 2.3 by rattray on Thursday April 27, 2017 @12:34PM (#14212804)
Highlights / tl;dr:

- ability to check .js files

- default type parameters (eg; `class Component<Props, State = object> {}`)

- generators/iterators (including async-generators, a stage 3 proposal).

- `--strict` flag to easily give you --strictNullChecks, --noImplicitAny, --noImplicitThis, and --alwaysStrict

- language server plugins are official (the Angular and Vue ones were promoted in particular)

Re:TypeScript 2.3 by sheetjs on Thursday April 27, 2017 @12:48PM (#14212916)
I wish TS would consider the annotation-in-comments form from flow: https://flow.org/blog/2015/02/20/Flow-Comments/

For switching a large existing JS codebase, it's easy to add flow comments without changing the final minified builds, allowing you to reap the full benefits of the type check.

Re:TypeScript 2.3 by mohamedhegazy 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:TypeScript 2.3 by yathern on Thursday April 27, 2017 @01:42PM (#14213347)
Thank you! I've been trying to figure out how to get JSDoc-ed code to get appropriately typed in Visual Studio Code with Typescript files as well.