sanitizing output based on output schema
As i understand, the
but for some reason the typing does not work. could somebody point out how to achieve similar but in a working way? is there no way to do what i want?
.output will only ensure the schema is respected, but will not sanitize output on the go (even tho it could be possible with a z.strictObject()):but for some reason the typing does not work. could somebody point out how to achieve similar but in a working way? is there no way to do what i want?