Generating a Zod schema from an API response sample, and what a sample can’t tell you
Disclosure: I built the converter used in this post. The Zod code below is useful without it. TypeScript types disappear at runtime. const user: Use…
Последние новости AI & ML от Tech News
Disclosure: I built the converter used in this post. The Zod code below is useful without it. TypeScript types disappear at runtime. const user: Use…
Внешний API возвращает данные в своей модели. Названия полей, вложенные объекты, изображения, цены и правила пагинации принадлежат provider. UI прил…
7 лет назад я опубликовал в npm свою первую библиотеку. Никому не нужную. С тех пор разработка библиотек стала моей профессией, где получаю больше к…
Express does not validate request input for you. Without a check at the edge, handlers get raw req.body , req.query , and req.params - strings where…
Headline: Zod 4 is a rewrite of the TypeScript-first schema validation library, released as the stable major in 2025. Four changes hit my code direc…
Lets start with a code example: import { pool , sql } from " ./db.js " ; import { z } from " zod " ; const getUser = ( id : number ) => { return…
If you're using Zod with react-hook-form, you've probably seen this at least once: Invalid input: expected number, received NaN At first glance, it…
If you use Prisma, you already know it's a fantastic ORM with excellent developer experience. But there's a common friction point almost all of us h…