Skip to content

Commit

Permalink
docs: fix typo in z.object (#2570)
Browse files Browse the repository at this point in the history
  • Loading branch information
m7yue committed Jul 31, 2023
1 parent fb00edd commit ab8e717
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -1204,7 +1204,7 @@ Starting from this object:

```ts
const user = z.object({
email: z.string()
email: z.string(),
username: z.string(),
});
// { email: string; username: string }
Expand Down Expand Up @@ -1269,7 +1269,7 @@ Starting from this object:

```ts
const user = z.object({
email: z.string()
email: z.string(),
username: z.string(),
}).partial();
// { email?: string | undefined; username?: string | undefined }
Expand Down

0 comments on commit ab8e717

Please sign in to comment.