#Array field get inferred as type never[]

3 messages · Page 1 of 1 (latest)

solar harbor
#

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?

balmy seal
#

Open a bug and please include a minimal reproduction and we'll take a look

solar harbor