Skip to content

Conversation

@dcousens
Copy link
Member

@dcousens dcousens commented Aug 6, 2024

Alternative to #9261

This pull request replaces the use of io-ts with zod, something I am planning to use internally elsewhere in the project.

@dcousens
Copy link
Member Author

dcousens commented Aug 6, 2024

@kennedybaird thanks for your initiative on #9261, I will add you as credit for this pull request 💛

@codesandbox-ci

This comment was marked as resolved.

@kennedybaird
Copy link
Contributor

Great work, I was going to suggest moving to zod!

label: string | undefined
data: Record<string, any> | undefined
label?: string
data?: Record<string, any>
Copy link
Member Author

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

@dcousens dcousens merged commit a111cb6 into main Aug 6, 2024
@dcousens dcousens deleted the fix-fp-ts branch August 6, 2024 04:13
dcousens added a commit that referenced this pull request Aug 6, 2024
dcousens added a commit that referenced this pull request Aug 6, 2024
dcousens added a commit that referenced this pull request Aug 7, 2024
dcousens added a commit that referenced this pull request Aug 9, 2024
dcousens added a commit that referenced this pull request Aug 9, 2024
@dcousens dcousens mentioned this pull request Aug 9, 2024
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.

3 participants