I'm very interested in the concrete thing you're trying to express. I'll be the first to admit deficiencies in TS.
-
-
there are a few secret magic types in flow that are the most awesome things for typing library code.
$keys gives you a string enum. -
-
yup!
-
Can't see any reason TS couldn't add
$keys, making it possible to do what you want ;) Post-processing already would work. -
it's nice that strings are their own types in TS. Makes this kind of thing pretty sweet.
End of conversation
New conversation -
-
-
that would be very handy in TS indeed!
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.