Types get updated all the time as folks flesh out their types. In general, they changes don’t pose a risk to my code (as long as TypeScript builds them). Here’s how I upgrade all of them at once:

yarn outdated | grep @types | awk '{print $1}' | xargs yarn upgrade

Update 7/2022

I’ve found that with Yarn 3 / Berry / PNP that these tools changed. There no “outdated” command, an “upgrade” is now just “up”. To make it work, there’s a plugin that is required.

The command looks like:

FORCE_COLOR=0 yarn outdated  '@types/*' | grep '@types' | awk '{print $3}' | xargs yarn up