Re:TypeScript is terrible for library developers
by Gene_Parmesan on Wednesday August 24, 2022 @03:38AM
(#32576024)
Did you miss this example from the linked post about redux-toolkit? https://github.com/reduxjs/redux-toolkit/blob/4ab8c42cb20ae1...
This is what types look like when you're on the library side. The post made very clear they aren't talking about the app dev side. The library types are complex like this so that the app devs have a smoother experience.
I get playing with technology for side projects, but for something commercial there is no way I would sign off on including that package into a project.