$keys gives flow a bit of an edge. But neither flow or TS can fully type immutable.js right now. Another day!
-
-
I think the Flow team was willing to make exceptions and add some magic types. Not particularly hard to do I would think.
-
yeah, this stuff really wants HKT to define in the most general way, but adding common magic types seems okay.
-
that's what I think. Some common magic types really make sense. Really helps in a ton of cases.
-
@drosenwasser awesome! -
anyway, this is why I don't dismiss TS so quickly because of type-system features, 1/
-
1. it already does more things than you think. 2. preprocessing is promising. 3. TS evolves quickly 2/2
-
to be fair. I never discounted TS. Just go back and forth. And I think Flow is better currently. That may change!
- 11 more replies
New conversation -
-
-
TLDR Keys<AnyInterface> => 'key1' | 'key2' | 'key3' ...
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.