Full-disclosure: I was highly skeptical of any benefit using TypeScript
programming language to write source code, where I enjoy writing JavaScript source code
from scratch, and I don't buy the claim that TypeScript is a "superset" of JavaScript.
I look at TypeScript and see a completely different programming language, from syntax to usage, and philosophy, compared to the JavaScript programming language.
Just to see for myself what the pros and cons are, I had to take TypeScript for a brief spin in my lab.
As is my protocol when trying or learning a new programming language or application, I start with I/O, reading standard input stream, writing standard output stream,
handle standard error. I usually use the Native Messaging protocol to facilitate reading and writing streams.