Skip to content

Instantly share code, notes, and snippets.

@iskenxan
Created January 17, 2022 14:34
Show Gist options
  • Save iskenxan/cb8b835b7b6aaf7020028ad9f228efe7 to your computer and use it in GitHub Desktop.
Save iskenxan/cb8b835b7b6aaf7020028ad9f228efe7 to your computer and use it in GitHub Desktop.
Typescript schema validation with zod
const result = User.parse({
email: "[email protected]",
name: "Hello World"
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment