Question:I know that TS is converted to JS using
Then after we get
.js, we execute the
These are 2 steps in order to execute a
My question is, how to do it in 1 step? (like one command instead of 2(
Answer:You can use
ts-nodewhich will run ts files.
If you have better answer, please add a comment about this, thank you!