Hacker News new | ask | show | jobs
by Zalastax 3291 days ago
Good point! I'm confused by the articles suggestion as it already talks about Flow which has support for string literal types. I.e. undefined | "loading" | "failed" | ActualData
1 comments

Just because it has a union type, it doesn't mean it's optimal to use it.