TanStackT
TanStack14mo ago
3 replies
brilliant-lime

Array field get inferred as type never[]

When passing the empty array as a default value to an array field, it gets inferred as never[] instead of the type inferred from zod schema. And in general, it gets inferred as the type of whatever I pass to default value.

Is this intended behavior?
Was this page helpful?