Skip to content

Type Issues when using optional in a zod schema #2345

Description

@Desalutar20

Describe the bug

I'm getting a type error

Your minimal, reproducible example

https://stackblitz.com/edit/vitejs-vite-zsrrzfkt?file=src%2FApp.tsx

Steps to reproduce

Go to App.tsx and see an error

Expected behavior

Working types

How often does this bug happen?

None

Screenshots or Videos

No response

Platform

  • Os: Arch linux
  • Browser: Zen browser

TanStack Form adapter

None

TanStack Form version

v1.33.5

TypeScript version

v6.0.2

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: typesThis issue affects the types of the library.questionscope: coreThis issue affects the core package, meaning any adapter is also affected by it.v1This issue has been created during v1 development.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions