Skip to content

docs: update z.custom example for v4 compatibility#5763

Open
andrewdamelio wants to merge 1 commit intocolinhacks:mainfrom
andrewdamelio:fix-custom-docs-example
Open

docs: update z.custom example for v4 compatibility#5763
andrewdamelio wants to merge 1 commit intocolinhacks:mainfrom
andrewdamelio:fix-custom-docs-example

Conversation

@andrewdamelio
Copy link

Remove template string literal example since z.templateLiteral is now available in Zod v4. Replace with File instanceof example which better demonstrates z.custom's use case for complex types.

Fixes #5605

Remove template string literal example since z.templateLiteral is now
available in Zod v4. Replace with File instanceof example which better
demonstrates z.custom's use case for complex types.

Fixes colinhacks#5605
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Docs] Maybe new example for z.custom

1 participant