zod icon indicating copy to clipboard operation
zod copied to clipboard

Strict function args

Open tonyxiao opened this issue 2 years ago • 0 comments

Zod right now always adds .rest(z.unknown()) to any function initiation and makes it impossible to validate that a function does not get extra parameters it does not intend

image

Is this the desired behavior? One could call z.ZodFunction.create() directly but feels a bit strange.

tonyxiao avatar Jul 15 '22 08:07 tonyxiao