Re:Zod 4
by ramon156 on Tuesday May 20, 2025 @08:19AM
(#44040729)
Well zod is for typescript, not laravel/livewire
[ Parent
| on HN ]
Re:Zod 4
by tauchunfall on Tuesday May 20, 2025 @08:43AM
(#44040934)
Yeah, it's very useful to validate schemas at compile-time and runtime. It prevents several different problems to occur.
Lately, I used code agents a lot, and having typescripts types infered from Zod schemas allows me to catch errors when the large-language model generated slightly wrong code.