You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using objects as maps in the example below. It appears the type of Object.values is an array of mixed as opposed to an array of the Point type I defined.
It appears if I do use Object.keys instead, flow can correctly infer the type of foo[key]
Object.keys(foo).map(key=>{returnfoo[key].x;})
This seems like a bug in flow, as we use Object as a map here and the type checker has enough info to correctly infer the type of Object.values(). Yes?
idris, asvyazin, jgrund, pascalduez, themouette and 223 morekarltaylor, hick209, supremebeing7, mateuszjanusz and defel