Closed Josh-Nicholson closed 1 year ago
Interesting. The DeepRequired
type didnt work for nested arrays. Let me know if it´s fixed for you in the latest version.
Thanks for such a quick response. After updating to the latest version, it appears to now be working :)
I'm having an issue with TypeScript detecting an issue in my input name attributes when I'm trying to use optional string properties within my zod schemas/
My schema looks like this:
On my form I use the code snippet from your sveltekit example:
const customerInfo = formFields<typeof customerInfoDto>();
which calls:
This is how I display the properties within the addresses array.
The name attribute works for the properties Name and Address1, but not for Address2 I get the following error:
Any help would be greatly appreciated.