Arguably, the TypeScript team should be supplying that nicer API. Its the only thing missing to me from TypeScript that it really needs.
Arguably, the TypeScript team should be supplying that nicer API. Its the only thing missing to me from TypeScript that it really needs.
It's also concerning just how much TypeScript has in it that is specific to just JSX. I mean, how did it work out that React got to get special treatment with the TS compiler? Can any source transforming project get that kind of treatment? That's exactly the sort of thing that should have been delegated to plugins.
I suggest you just find one TSConfig setup that works for you and go from that… I’ve never felt these integration pains in the 4 years of heavy TS usage. That said, I authored my own component library, so maybe that’s a factor
There is no bloody reason why a custom JSON.parse shouldn't be able to look at compile time at what the expected type of a JSON blog is and compile time generate validation code.
I also disagree that type validators like Zod/io-ts would benefit from plugins, they are just js code in the end that does defensive checks for you. Unless you have something else in mind