Skip to content

Conversation

@som-sm
Copy link
Collaborator

@som-sm som-sm commented Oct 18, 2025

Closes #1275

@som-sm som-sm force-pushed the feat/add-exclusify-union-type branch from 91929af to 6b32cef Compare October 18, 2025 12:23
Repository owner deleted a comment from claude bot Oct 18, 2025
Repository owner deleted a comment from claude bot Oct 18, 2025
Repository owner deleted a comment from claude bot Oct 18, 2025
@som-sm som-sm marked this pull request as ready for review October 18, 2025 15:02
@som-sm som-sm requested a review from sindresorhus October 18, 2025 15:02
Repository owner deleted a comment from claude bot Oct 18, 2025
@claude

This comment was marked as outdated.

Repository owner deleted a comment from claude bot Oct 18, 2025
Copy link

@ycmjason ycmjason left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NICEEEE!! LGTM!!!


edit: having more thoughts on this I don't think discriminated union has much to do with this. so please ignore my previous suggestion 😄

@ycmjason
Copy link

ycmjason commented Oct 19, 2025

I've written a little article to introduce this type (currently a draft, but accessible via the following link):

https://dev.to/ycmjason/typescript-mutually-exclusive-unions-from-never-to-exclusifyunion-39g4-temp-slug-5632391?preview=d13a78f8868cf7b1997eef7d8eb3145630567f45a8495bce01c4f89f0b02f90a70b29151d43070fe9e0dafd8cc970b4d408c19e806244383148fbaae

Would be nice to hear some feedback and I think it would be a nice introduction to this type. I will publish this article once this is merged!

Repository owner deleted a comment from claude bot Oct 19, 2025
Repository owner deleted a comment from claude bot Oct 19, 2025
Repository owner deleted a comment from claude bot Oct 19, 2025
Repository owner deleted a comment from claude bot Nov 2, 2025
Repository owner deleted a comment from claude bot Nov 2, 2025
Repository owner deleted a comment from claude bot Nov 2, 2025
Repository owner deleted a comment from claude bot Nov 2, 2025
@som-sm som-sm requested a review from sindresorhus November 2, 2025 18:03
@sindresorhus sindresorhus merged commit 2b906fe into main Nov 3, 2025
7 checks passed
@sindresorhus sindresorhus deleted the feat/add-exclusify-union-type branch November 3, 2025 08:39
@sindresorhus
Copy link
Owner

Looks good

som-sm added a commit that referenced this pull request Nov 7, 2025
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.

Proposal: AllDiscriminatedUnionFields

5 participants