how to upgrade typescript code example Example: how to update typescript npm install -g typescript@latest