This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Add option to use Merge
from type-fest to better conversion of object type spreads
#235
Labels
Object type spreads in flow result in properties that come later overriding those that come sooner, e.g.
In TypeScript if we do
type C = A & B
we end up with{foo: never}
because the intersection betweenstring
andnumber
is empty.type-fest has a bunch of utility types including
Merge
which provides the same functionality as Flow's type spreads.Does anyone has code the relies on Flow's object type spread functionality?
The text was updated successfully, but these errors were encountered: