Skip to content

Bug: z.void() schema output #37

@jlalmes

Description

@jlalmes

I've just upgraded from v3.18 to v3.20 and noticed that the schema returned from z.void() is now {} instead of undefined. I've looked through the changelog and not seen this mentioned (therefore assume it's a bug?).

Reproduction: https://stackblitz.com/edit/typescript-6vgab1?devToolsHeight=33&file=index.ts

Thanks 🙌

Metadata

Metadata

Assignees

No one assigned

    Labels

    Breaking solutionThis is a bug, but the solution to it would be a bigger problem than the original issue.V4

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions