Skip to content

Commit

Permalink
Update nullish documentation to correct chaining order (#2457)
Browse files Browse the repository at this point in the history
This follows on from 0c0e495 to keep the docs in sync.
  • Loading branch information
nickcampbell18 committed Jul 31, 2023
1 parent 6aab901 commit 81a89f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -2361,7 +2361,7 @@ A convenience method that returns a "nullish" version of a schema. Nullish schem
const nullishString = z.string().nullish(); // string | null | undefined

// equivalent to
z.string().optional().nullable();
z.string().nullable().optional();
```

### `.array`
Expand Down
2 changes: 1 addition & 1 deletion README_ZH.md
Expand Up @@ -1623,7 +1623,7 @@ z.nullable(z.string());
const nullishString = z.string().nullish(); // string | null | undefined

// equivalent to
z.string().optional().nullable();
z.string().nullable().optional();
```

### `.array`
Expand Down
2 changes: 1 addition & 1 deletion deno/lib/README.md
Expand Up @@ -2358,7 +2358,7 @@ A convenience method that returns a "nullish" version of a schema. Nullish schem
const nullishString = z.string().nullish(); // string | null | undefined

// equivalent to
z.string().optional().nullable();
z.string().nullable().optional();
```

### `.array`
Expand Down

0 comments on commit 81a89f5

Please sign in to comment.