News for hackers. Stuff that matters.
Re:TypeScript 2.3 by bcherny on Thursday April 27, 2017 @02:08PM (#14213551)
As far as type systems/language features:

TypeScript:

- Structurally typed

- Enum types

- Mapped types

- Abstract classes

- Scoped class members (public, private, protected)

- Namespaces

Flow:

- Nominally typed

- Covariance/contravariance annotations

- Supertype annotations (via $Supertype type)

- Subtype annotations (via $Subtype type)

- Arity annotations (via $Pred type)

- Subtraction types (via $Diff type)

- Opt-in 2-way type resolver (via * type)

- Refer to nested type (via $PropertyType type)

Otherwise, the two are remarkably similar.

I've been using TS for a few years, and Flow for a few months. Please correct me if any of the above are wrong.

Re:TypeScript 2.3 by andreypopp on Thursday April 27, 2017 @02:12PM (#14213587)
In Flow only classes are nominally typed. Objects and interfaces are typed structurally.
Re:TypeScript 2.3 by pininja on Thursday April 27, 2017 @06:40PM (#14215418)
Thank you for the comparison. This basically matches my experience as well. Hoping your post gets up to the top.