User avatar
privTri Volpeon areon3NSmol @volpeon@icy.wyvern.rip
1y
My boss wasn't happy about me using libraries such as Zod to define interfaces because it looks confusing. To be fair, it does look like shit compared to native interfaces from other languages.

But I can't get rid of it because things like Date objects are converted to strings when put into JSON, and then my regular TypeScript interfaces would always be wrong for either frontend or backend.

I get now why some web apps send JavaScript code around. Shit would be so much easier.
drgn__w_