Skip to content

Commit

Permalink
Update nullish documentation to correct chaining order
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
Nick Campbell committed May 24, 2023
1 parent 6fec8bd commit ed2089e
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 @@ -2338,7 +2338,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
Original file line number Diff line number Diff line change
Expand Up @@ -1617,7 +1617,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
Original file line number Diff line number Diff line change
Expand Up @@ -2338,7 +2338,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 ed2089e

Please sign in to comment.