JacobWeisenburger / zod_utilz

Framework agnostic utilities for Zod
MIT License
158 stars 9 forks source link

Improve SPR type narrowing #7

Closed jasikpark closed 7 months ago

jasikpark commented 8 months ago

With this change, we preserve the fact that data and error will only exist when success matches their state.

JacobWeisenburger commented 7 months ago

this defeats the whole purpose of SPR.