From ab8e71793431eeb163613007c134132e6c2ab078 Mon Sep 17 00:00:00 2001 From: 7yue Date: Mon, 31 Jul 2023 09:49:08 +0800 Subject: [PATCH] docs: fix typo in z.object (#2570) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cf53c3bb0..45c87dfb0 100644 --- a/README.md +++ b/README.md @@ -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 } @@ -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 }