Skip to content

Commit

Permalink
doc: Fix incorrect example code for nullable method
Browse files Browse the repository at this point in the history
  • Loading branch information
vbudovski committed Jul 20, 2024
1 parent d89a407 commit 639d0a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paseri-docs/src/content/docs/reference/schema.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Allow any schema to accept `null` as a valid value.
```typescript
import * as p from '@vbudovski/paseri';

const schema = p.string().optional();
const schema = p.string().nullable();
const result = schema.safeParse(null)
if (result.ok) {
// result.value is of type `string | null`.
Expand Down

0 comments on commit 639d0a2

Please sign in to comment.