Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sophiebits
on March 11, 2016
|
parent
|
context
|
favorite
| on:
State of the Art JavaScript in 2016
For comparison, Flow supports tagged unions like this:
http://flowtype.org/blog/2015/07/03/Disjoint-Unions.html
Arnavion
on March 12, 2016
[–]
TS 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
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
http://flowtype.org/blog/2015/07/03/Disjoint-Unions.html