Hacker News new | ask | show | jobs
by Aeyxen 400 days ago
I think Zod uses JIT compilation via `new Function`, rather than including the entire TypeScript compiler. This method allows for concise validation logic, executing only what’s necessary at runtime.