Check out example codes for "what is typescript in angular". It will help you in understanding the concepts better.

Code Example 1

content_copy
      
      {
  "compileOnSave": false,
  "compilerOptions": {
    "baseUrl": "./",
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "downlevelIteration": true,
    "experimentalDecorators": true,
    "moduleResolution": "node",
    "importHelpers": true,
    "target": "es2015",
    "module": "es2020",
    "lib": [
      "es2018",
      "dom"
    ]
  }
}

Code Example 2

content_copy
      
      "lib": [
  "es2018",
  "dom"
]

Learn ReactJs, React Native from akashmittal.com