From 2577e71cd6854b15d2611f192bd9a31cfa4585ea Mon Sep 17 00:00:00 2001 From: rash Date: Mon, 29 Jan 2024 20:27:34 +0100 Subject: [PATCH] added quotes to NaN definition to make it clear --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2ee51d9bc..8fb0d6996 100644 --- a/README.md +++ b/README.md @@ -948,7 +948,7 @@ You can customize certain error messages when creating a nan schema. ```ts const isNaN = z.nan({ required_error: "isNaN is required", - invalid_type_error: "isNaN must be a number", + invalid_type_error: "isNaN must be 'not a number'", }); ```