Skip to content

What's with the use of .passthrough() in zod? #182

@punkpeye

Description

@punkpeye

Almost every Zod schema has .passthrough(), which feels very unusual.

Among other downsides, this breaks type safety by allowing arbitrary properties.

Just wondering what's the rationale for it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions