DEV Community

Discussion on: Using Typescript without compilation

 
akmjenkins profile image
Adam • Edited

The only time you absolutely 100% need feedback is in CI. Having it in your editor is a bonus, albeit one that I can’t see myself living without very easily.

Simplified development is a subjective statement.

My simplified development is having my type annotations inlined in my source code. Your simplified development is having a source code file and a separate manually maintained d.ts file and writing some of those (not all) types twice - once in the d.ts and then once in the JSDoc string

This JSDoc sounds really cool, and I now know, thanks to this article about all the capabilities of JSDoc.

If compilation was somehow a thing I wanted to avoid, I’d use this. But that’s not been my experience. The sourcemap drawback is true, but it’s a pretty minor one given all the tooling that spits this stuff out for you without requiring you to write/maintain extra stuff manually

Some comments have been hidden by the post's author - find out more