-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove io-ts, use zod #9263
Remove io-ts, use zod #9263
Conversation
@kennedybaird thanks for your initiative on #9261, I will add you as credit for this pull request 💛 |
This comment was marked as resolved.
This comment was marked as resolved.
Great work, I was going to suggest moving to zod! |
label: string | undefined | ||
data: Record<string, any> | undefined | ||
label?: string | ||
data?: Record<string, any> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is required as a result of zod
assuming that | undefined
is equivalent to ?:
, which it isn't.
Reference colinhacks/zod#2464 and colinhacks/zod#2598
Alternative to #9261
This pull request replaces the use of
io-ts
withzod
, something I am planning to use internally elsewhere in the project.