Skip to content

Commit

Permalink
Fix z.instanceof example (#3003)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnault authored Feb 3, 2024
1 parent 1fcc9e2 commit fd61644
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1855,7 +1855,7 @@ const TestSchema = z.instanceof(Test);

const blob: any = "whatever";
TestSchema.parse(new Test()); // passes
TestSchema.parse("blob"); // throws
TestSchema.parse(blob); // throws
```

## Functions
Expand Down
2 changes: 1 addition & 1 deletion README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,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
Expand Down
2 changes: 1 addition & 1 deletion deno/lib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1854,7 +1854,7 @@ const TestSchema = z.instanceof(Test);

const blob: any = "whatever";
TestSchema.parse(new Test()); // passes
TestSchema.parse("blob"); // throws
TestSchema.parse(blob); // throws
```

## Functions
Expand Down

0 comments on commit fd61644

Please sign in to comment.