Check out example codes for "how to check typescript version". It will help you in understanding the concepts better.

Code Example 1

tsc --version

Code Example 2

npm install -g typescript

Code Example 3

npm install -g typescript

Learn ReactJs, React Native from akashmittal.com