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.
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
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
TS has given me headaches, too. What's not quite as easily quantifiable is how many headaches TS has saved me from
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.
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.