I find myself far more productive in TypeScript because it lets me plan more (by writing types before the implementation, which often exposes silly things that I can fix before writing a lot of code) and generally be more hasty while still having confidence that my code is more or less correct. I use strict: true and rarely run into problems, especially because I can just use as in the uncommon cases that I can't convince the TypeScript compiler of something.
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.
What did you mean by TypeScript not being happy with checking for the existence of variables with
!!
? TypeScript is perfectly happy to do that:I find myself far more productive in TypeScript because it lets me plan more (by writing types before the implementation, which often exposes silly things that I can fix before writing a lot of code) and generally be more hasty while still having confidence that my code is more or less correct. I use
strict: true
and rarely run into problems, especially because I can just useas
in the uncommon cases that I can't convince the TypeScript compiler of something.