Skip to content

Update type in test for upcoming intersection equality behavior change#3910

Closed
MichaelMitchell-at wants to merge 1 commit intocolinhacks:mainfrom
MichaelMitchell-at:update_test_for_intersection_equality_change
Closed

Update type in test for upcoming intersection equality behavior change#3910
MichaelMitchell-at wants to merge 1 commit intocolinhacks:mainfrom
MichaelMitchell-at:update_test_for_intersection_equality_change

Conversation

@MichaelMitchell-at
Copy link
Copy Markdown

If microsoft/TypeScript#60726 is merged, then the type { name: string } & { [z.BRAND]: { superschema: true } } will become identical to { name: string ; [z.BRAND]: { superschema: true } }, which is not identical to { name: string } & z.BRAND<'superschema'> because z.BRAND<'superschema'> cannot be "trivially merged" into the object literal type.

@netlify
Copy link
Copy Markdown

netlify Bot commented Dec 13, 2024

Deploy Preview for guileless-rolypoly-866f8a ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 391545e
🔍 Latest deploy log https://app.netlify.com/sites/guileless-rolypoly-866f8a/deploys/675c7850e835a70008a427d3
😎 Deploy Preview https://deploy-preview-3910--guileless-rolypoly-866f8a.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@colinhacks
Copy link
Copy Markdown
Owner

Closing this out because this PR targets Zod 3, which is now in maintenance mode. Thanks for the contribution, and apologies for not getting to it sooner. It was difficult to merge or cherry-pick PRs created during active Zod 4 development.

If this fixes a bug, please check whether it still reproduces on the latest version of Zod 4. If this adds a feature, please check whether it is still missing in Zod 4. If so, feel free to open a new PR against main 👍

@colinhacks colinhacks closed this Apr 30, 2026
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.

2 participants