From 66a3998c632bbc6f994f925d307eb89294ec89b6 Mon Sep 17 00:00:00 2001 From: alexnault Date: Wed, 29 Nov 2023 09:31:56 -0500 Subject: [PATCH] Fix z.instanceof example --- README.md | 2 +- README_ZH.md | 2 +- deno/lib/README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 385835506..69e954fb1 100644 --- a/README.md +++ b/README.md @@ -1800,7 +1800,7 @@ const TestSchema = z.instanceof(Test); const blob: any = "whatever"; TestSchema.parse(new Test()); // passes -TestSchema.parse("blob"); // throws +TestSchema.parse(blob); // throws ``` ## Functions diff --git a/README_ZH.md b/README_ZH.md index f8878f292..f680ed27c 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -1215,7 +1215,7 @@ const TestSchema = z.instanceof(Test); const blob: any = "whatever"; TestSchema.parse(new Test()); // passes -TestSchema.parse("blob"); // throws +TestSchema.parse(blob); // throws ``` ## Function schemas diff --git a/deno/lib/README.md b/deno/lib/README.md index 385835506..69e954fb1 100644 --- a/deno/lib/README.md +++ b/deno/lib/README.md @@ -1800,7 +1800,7 @@ const TestSchema = z.instanceof(Test); const blob: any = "whatever"; TestSchema.parse(new Test()); // passes -TestSchema.parse("blob"); // throws +TestSchema.parse(blob); // throws ``` ## Functions