zod
zod copied to clipboard
Strict function args
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
Is this the desired behavior? One could call z.ZodFunction.create()
directly but feels a bit strange.