TypeScript is a typed superset of JavaScript by definition. As a result, all current JavaScript is TypeScript compliant. Also, you may transform an...
For further actions, you may consider blocking this person and/or reporting abuse
Once you go Typescript you never go back.
💯 agree with that, at least with relatively bigger projects
I just converted a large backend API from JS to TS.
I cannot count how many bugs I could fix out of the box, just by all the places where non-existing object properties were accessed, function parameters were omitted etc.
Exactly that :)
Agreed!
Once you really start using TypeScript, you'll never look at JavaScript the same. However, it's important to note that while it will help you identify bugs during development, it does not do runtime validations. When your application is being used after it has been compiled to JavaScript, TypeScript is no longer helping you so you still need to sanitize and validate your data.
Another thing to keep in mind is that TypeScript is not a replacement for tests. Unit tests, integration tests, contract testing, e2e testing, etc... are all still incredibly important and should not be skipped.
Agree many dev blame Javascript specially devs coming for c# and asp. Net the reality is that you don't know how to program anything that doesn't take your hand all the way long... Same history is true for php and python many devs hate them but it is because it will not hold your hand "you are a developer make and store you code for future use and solutions" it has been said
Well, I'm afraid I disagree. By "TypeScript compliant", they mean you can import javascript files to typescript and the other way around, but not nessecairly each piece of Javascript code will compile.
Regarding the Javascript classes - coming from a Java background, the value of Javascript classes is worth less compared to Java. Typescript offered the OOP features of Java with the flexibility of Javascript.
About your other points - direct them to the author:)
100% truth.
As most likely do, I struggled with TypeScript at first. But now, several months in, I kind of feel naked and unprotected without it. It's my default now.
Hopefully this is just bad English.
"saving you time from writing tests"
Nothing, except ignorance, should save you from writing tests! If you're not writing tests, then don't push.