fwiw, as someone who works on #rustlang, I can understand advanced type system features. Lay it on me :)
-
-
1. .get should only take valid keys for a Record. (Possible with
$keys in flow) -
ah it produces an enum of the keys of a type?
-
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 -
-
-
@jlongster has been tweeting about it. -
is
$keys basically: { x: T, y: U } -> { x: any, y: any }?
End of conversation
New conversation -
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.