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
ObjMap<T, F> takes an object type T, and a function type F, and returns the object type obtained by mapping the type of each value in the object with the provided function type F. In other words, $ObjMap will call (at the type level) the given function type F for every property value type in T, and return the resulting object type from those calls.
We could probably implement this if/once #6606 is implemented:
Tracking this in a separate issue in case someone searches for TypeScript's equivalent of $ObjMap. Feel free to close this and fold into 6606 if you prefer!
The text was updated successfully, but these errors were encountered:
We can do this with ReturnType now (minus overloading which I think needs to just switch to conditional types at this point for good type system support)
https://flow.org/en/docs/types/utilities/#toc-objmap
From Flow's docs:
We could probably implement this if/once #6606 is implemented:
Tracking this in a separate issue in case someone searches for TypeScript's equivalent of
$ObjMap
. Feel free to close this and fold into 6606 if you prefer!The text was updated successfully, but these errors were encountered: