3 ms·
One possible cause that bites me in JS/TS all the time is the lack of good metaprogramming tools. There's no simple way to autogen boilerplate, and libs that tr
by bubblyworld 2y ago
One possible cause that bites me in JS/TS all the time is the lack of good metaprogramming tools. There's no simple way to autogen boilerplate, and libs that try use decorators (nest), custom compilation steps (deepkit), node modules fuckery (prisma), custom schema types (zod), etc.
You basically always end up with the same information in different out-of-band places (types, schemas, classes, decorators).
Deepkit is the most interesting approach I've seen - patch TSC to output type info you can use at runtime. But the custom compiler patch and solo dev make it a hard sell.