colinhacks / zod

TypeScript-first schema validation with static type inference
https://zod.dev
MIT License
33.09k stars 1.15k forks source link

Update README.md #3588

Open VdeVentura opened 3 months ago

VdeVentura commented 3 months ago

Add z.enum() to list of primitives and clarify code sample

netlify[bot] commented 3 months ago

Deploy Preview for guileless-rolypoly-866f8a ready!

Built without sensitive environment variables

Name Link
Latest commit 9706344d0607c33f532ddb865a7d3593611044d7
Latest deploy log https://app.netlify.com/sites/guileless-rolypoly-866f8a/deploys/66742159e477b40008dc2e0e
Deploy Preview https://deploy-preview-3588--guileless-rolypoly-866f8a.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

VdeVentura commented 2 months ago

To clarify: this contribution is not hacktoberfest style readme updates, I was honestly using zod for the first time and had the docs by the size, looking at the primitives, struggled to see what to use for enums as it was not listed as a primitive, went to google->stack overflow-> link to zod enums.

The second one was the same thing, was reading the docs and struggled to understand if "this" meant the code sample above or below.