Skip to content

Cannot use Zod .transform #415

Closed as not planned
Closed as not planned
@alii

Description

@alii

Describe the bug
We cannot use Zod's .transform because it breaks types

To Reproduce
Playground Link

Expected behavior
We can use zod .transform as expected and access the transformed values in the submit function. Errors will still be correct and typed as FieldError

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