I've installed both @types/react and @types/react-dom. Let's say they were at version 15 before, and that I then upgraded both using yarn upgrade @types/react@16 @types/react-dom@16.
@types/react-dom declares a dependency on @types/react using "@types/react": "*", i.e. it should be able to work with the newly installed version. However, apparently Yarn has locked dependencies on @types/react@* to @types/react@^15.0.22.
The result of this is that @types/react-dom has its own copy of the React typings, still at v15 - due to which TypeScript starts to complain that I have duplicate type definitions.
What is the appropriate way to upgrade to v16 transitively? Can I avoid manually editing my yarn.lock?