Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/docs/content/api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1031,6 +1031,12 @@ z.never(); // inferred type: `never`

## Objects


<Callout type="warn">
Object methods (`.pick()`, `.omit()`, `.extend()`, etc.) will discard the refinements defined on the base object. However, `.safeExtend()` will preserve them.
</Callout>


To define an object type:

```ts z.object
Expand Down