TypeScript is a superset of JavaScript that adds static types to JavaScript.
For static type checking code is analyzed by IDE at the time of writing the code.
it is a development tool and compiles into plain JavaScript.
It does not change the runtime behaviour of JavaScript code.
Once TypeScript’s compiler is done with checking your code, it erases the types to produce the resulting “compiled” code.
This means that once your code is compiled, the resulting plain JS code has no type information.