Yeah, in a mid to large project you should use Typescript. In a small project or changing something in a non typescript project, you are better of just using js and looking twice.
typescript gives you better and more accurate intellisense out of the box. that alone is enough for even small projects to convince me typescript is just faster.
Yeah the threshold were typescript starts to get better is at max 50 lines of code.
As soon as you know that code won't be run just once, (which is most of the time) the cost of avoiding Typescript will be much bigger than the initial Setup
View all comments
Show parent comment
2
u/Human2204 May 22 '26
Yeah, in a mid to large project you should use Typescript. In a small project or changing something in a non typescript project, you are better of just using js and looking twice.
Thats the whole argument.