I feel like I'm the only one, but I don't care for Typescript.
After working with it for a while, the type checker ends up being painful to work with. I'm using React, and it's difficult to write higher order components that are correctly typed. Additionally, probably related, styled components often get messed up with the type system.
You're not the only one. It's an absolute pain dealing with incorrect and incomplete type definitions and lack of TypeScript examples for libraries. If all libraries I used were built and documented using TypeScript, I'd probably use it.
You're not the only one who believes this; you're just ahead of the curve.
TypeScript adds negative value overall once you consider real use cases.
Eventually everyone is going to have experienced issues with incompatible dependencies, outdated type definitions, incompatible TS version config settings,
incompatibility issues with bundling tools, source mapping issues, monorepo issues, issues related to debugging in a deployment environment.
I think that the biggest problem with TypeScript though is that it gives a false sense of high code quality which actually makes the real code quality and architecture a lot worse.
With code completion and the ability to jump around the code very easily, TS makes it easy to keep track of classes and type definitions over many
files without having to actually think about the class hierarchy or file and folder structure but this is a short term approach and leads to significant long term issues.
I agree in part. I've also had the type battle with HoC... and with Redux is still pretty painful. I don't know if this is Typescripts fault though, or more to do with some of js magic that goes on. But, once you win the battle... having typed redux and HoC works great!
It’s not really a hassle at all and adds great value with compile time checking of proptypes etc. Give it a go. If you use MobX especially you should find it really quite straightforward - I’m not sure what typing Redux is like these days, didn’t used to be much fun but I’ve not used Redux for about 3 years
After working with it for a while, the type checker ends up being painful to work with. I'm using React, and it's difficult to write higher order components that are correctly typed. Additionally, probably related, styled components often get messed up with the type system.