Skip to content

Commit

Permalink
fix typo after ac2fb4a (#1267)
Browse files Browse the repository at this point in the history
  • Loading branch information
Balastrong committed Jul 18, 2022
1 parent 55d2744 commit d9c3637
Show file tree
Hide file tree
Showing 2 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 @@ -558,7 +558,7 @@ z.date().safeParse(new Date()); // success: true
z.date().safeParse("2022-01-12T00:00:00.000Z"); // success: false
```

You can customize certain error messages when creating a boolean schema.
You can customize certain error messages when creating a date schema.

```ts
const myDateSchema = z.date({
Expand Down
4 changes: 2 additions & 2 deletions deno/lib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ z.date().safeParse(new Date()); // success: true
z.date().safeParse("2022-01-12T00:00:00.000Z"); // success: false
```

You can customize certain error messages when creating a boolean schema.
You can customize certain error messages when creating a date schema.

```ts
const myDateSchema = z.date({
Expand Down Expand Up @@ -1800,7 +1800,7 @@ z.optional(z.string());

### `.nullable`

A convenience method that returns an nullable version of a schema.
A convenience method that returns a nullable version of a schema.

```ts
const nullableString = z.string().nullable(); // string | null
Expand Down

0 comments on commit d9c3637

Please sign in to comment.