Created
January 17, 2022 14:36
-
-
Save iskenxan/6029d690fca88c9a12b43cf7fe50f32f to your computer and use it in GitHub Desktop.
Typescript schema validation with zod
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
z.string().optional().array(); // (string | undefined)[] | |
z.string().array().optional(); // string[] | undefined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment