1 Reply
seems the same as this: https://github.com/colinhacks/zod/issues/5154
GitHub
Zod 4 regression: parsing with schema of indexed access type · Iss...
I’m using indexed access types to select between several Zod schemas of different output types depending on a key. Using TypeScript 5.9.2, this type checks successfully with Zod 3.25.76 but not wit...