As a principle, TypeScript never changes the runtime behavior of JavaScript code.

TypeScript is JavaScript’s runtime with a compile-time type checker.

If you find a resource that uses TypeScript directly, that’s great too, but don’t limit yourself to thinking you need TypeScript-specific answers for everyday questions about how to accomplish runtime tasks.

https://www.typescriptlang.org/docs/handbook/typescript-from-scratch.html