zod-tutorial icon indicating copy to clipboard operation
zod-tutorial copied to clipboard

A crash course on Zod - a schema validation library for TypeScript

Results 15 zod-tutorial issues
Sort by recently updated
recently updated
newest added

The `name` property was meant to have validation as it is marked by 🕵🏼 and Matt mentioned it in the solution video.

Hi, Matt! Really enjoying the tutorial and carefully reading every sentence 🤓 Should this read "... to pass any invalid email, phone number, or website url."? I reckon it should,...

the exercise validates the name field in the schema but no actual runtime test was written for it

By passing our generic into the first generic slot on `z.ZodSchema`, the return type is inferred for free 😄

## PR Type What kind of change does this PR introduce? ``` [ ] Bugfix [x] Feature [ ] Code style update (formatting, local variables) [ ] Refactoring (no functional...

--- name: Feature request about: Suggest an idea for this project title: 'add "or" solution to "07 union problem"' --- ## What is the motivation/use case for changing the behavior?...

Currently both of these "solutions" pass exercise 14: ```ts // correct const genericFetch = ( url: string, schema: Schema ): Promise => { return fetch(url) .then((res) => res.json()) .then((result) =>...

where is tutorial video or document tutorial? it seems a puzzle. I don't know how to start.

This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more. ## Config Migration Needed - [ ] Select this checkbox to let Renovate create...