When using Flow, be careful with empty objects. They are "unsealed" which means that all properties are effectively optional at the original call site. Meaning, this does NOT error: const obj: {foo: string} = {}; This behaviour is specific to an empty object.
-
-
I don’t think that should error. Will check.
-
It will not error in Flow, but it will throw a runtime error.
- 2 more replies
New conversation -
-
-
this took a very long time to make, what am i doing with my life
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.
he/him 










