Open bartoszkrawczyk2 opened 9 months ago
Hi @bartoszkrawczyk2 sorry for late reply, the actual return was "arr", but because of some typescript issue, until now i can't get rid of those, do you, maybe, know any workaround for that?
or in another workaround, you can make the array as the array of object, like z.array({ name: z.string() })
If an array is present in the schema, it's key type should still be string.
Example:
And when I hover to check the type
arr
is an array, but it's a key so it should be a string:Is it by design? Or is it bug?