Check out example codes for "web component typescript". It will help you in understanding the concepts better.

Code Example 1

npm init
npm install --save-dev ts-node typescript tslib express @types/express

Learn ReactJs, React Native from akashmittal.com