-
-
Notifications
You must be signed in to change notification settings - Fork 557
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
IsEqual
identity issues
#537
Comments
microsoft/TypeScript#27024 (comment) has a robust solution that seems to solve this (TS Playground link). It's a much longer type though, and seemingly not perfect either. |
Seemingly, according to Update 1 on this StackOverflow answer, under TypeScript's implementation microsoft/TypeScript#48100 is an open issue tracking type equality and its definition. Seems that a recursive |
FWIW microsoft/TypeScript#60726 might fix the intersection bug mentioned above. |
There are two self-identity bugs that can pretty simply be fixed: TS Playground
Both of these evaluate to false:
The fix is to expand the check a touch:
There's also this intersection bug but I'm unaware of a fix: TS Playground
This evaluates to false:
Upvote & Fund
The text was updated successfully, but these errors were encountered: