3 ms·
For comparison, Flow supports tagged unions like this: http://flowtype.org/blog/2015/07/03/Disjoint-Unions.html http://flowtype.org/blog/2015/07/03/Disjoint-Un
by spicyj 11y ago
For comparison, Flow supports tagged unions like this:
http://flowtype.org/blog/2015/07/03/Disjoint-Unions.html http://flowtype.org/blog/2015/07/03/Disjoint-Unions.html
- Arnavion 11y agoTS has string types starting from 1.8, although they can't be used for narrowing down the type yet in the way that Flow can. http://bit.ly/1LhA5id http://bit.ly/1LhA5id