You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seemingly, according to Update 1 on this StackOverflow answer, under TypeScript's implementation {a: 1} & {b: 2} and {a: 1, b: 2} aren't actually the same. Not sure if that means they should or shouldn't be equal on the type level, though.
microsoft/TypeScript#48100 is an open issue tracking type equality and its definition. Seems that a recursive Simplify can fix some issues with equality as well.
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: