DEV Community

Discussion on: Using Typescript without compilation

Collapse
 
akmjenkins profile image
Adam

TS has given me headaches, too. What's not quite as easily quantifiable is how many headaches TS has saved me from

Thread Thread
 
jorenbroekema profile image
Joren Broekema

Were those headaches saved by TS compile step or by the type safety TS gives you? Because the latter, you still have it with JSDocs/JS files, it's the same tool (TS) analyzing your code, building the type definitions and having your editor scream at you when you mess something up.

Thread Thread
 
akmjenkins profile image
Adam

They were definitely solved by the typesafety

Thing is, 98% of the code I write is being transpiled anyway, so it's actually more of a hassle to not use TS in this environment.

When I do write code that doesn't absolutely have to be transpiled, I may definitely explore this JSDoc stuff. Transpiling stuff isn't giving me very much trouble at the moment, though.

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