where to use typescript code example Example 1: install typescript npm install -g typescript Example 2: npm typescript npm install -g typescript