$Exact
to make type spreading safe JS-0508Prefer that the object types that are spread to be exact type explicitly.
It is recommended by flow community to use exact type whenever possible as they are much more precise and interact better with other type system features, like spreads.
type city = {...{test: string}}
type location = {test: number}; type city = {...location}
type city = {...$Exact<{test: string}>}
type location = {test: number}; type city = {...$Exact<location>}