Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix typing bug hiding errors of nullable composite fields (#1545)
This commit changes types to match what the existing code produces. For type: `z.object({ foo: z.string() })` The error type was and still is `{ _errors: string[], foo?: { _errors: string[] } }` But for type: `z.object({ foo: z.string() }).optional()` It was previously `{ _errors: string[] }` After this commit, it is `{ _errors: string[], foo?: { _errors: string[] } }`
- Loading branch information
1 parent
4671461
commit 9cc7535
Showing
4 changed files
with
94 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters