It's fine. You like to know what is going on in your codebase. Your friends, on the other hand, are more like cowboys. Enough trying to convince th...
For further actions, you may consider blocking this person and/or reporting abuse
Thanks. This might come in handy when I want to run
node ./script.js
, but I want to skip the compilation step for TypeScript, nor do I want to rely onts-node
.For example, when I want to create a CLI script (
"bin"
field inpackage.json
).Furthermore, as I use Node 10, I cannot use
import
as well, onlyrequire
, but this shouldn't be a problem, is it?Definitely, that would be a good use case!
Using require shouldn't be a problem.
I love using this approach when I want to avoid a build step altogether.
I really appreciate you taking the time to check this out.
Great article. BTW,
jsconfig.json
files are justtsconfig.json
files withcheckJs: true
by default, so there is no need for that. :P.Didn't know that, Pro tip!
Thanks 🤘
Good article. I noticed a small grammatical error. "Now we can use the Typescript compiler will parse our .js files." should be "Now we can use the Typescript compiler to parse our .js files.".
Thanks! Updating now 🤘
Meanwhile in real world JSDoc only missing mapped types. And for good, I guess ;)