From 495319b96f08de2618b0ff1a9845548985992752 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren?= <102539376+ezay17@users.noreply.github.com> Date: Thu, 10 Oct 2024 19:06:05 +0200 Subject: [PATCH] Update complex-fields.md Added brackets to z.string call in mapping. --- www/docs/docs/usage/complex-fields.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/docs/docs/usage/complex-fields.md b/www/docs/docs/usage/complex-fields.md index 9f97559..14fe90e 100644 --- a/www/docs/docs/usage/complex-fields.md +++ b/www/docs/docs/usage/complex-fields.md @@ -45,7 +45,7 @@ const AddressSchema = z.object({ }); const mapping = [ - [z.string, TextField] as const, + [z.string(), TextField] as const, [AddressSchema, AddressEntryField] as const, ] as const;