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...
- 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)