-
Notifications
You must be signed in to change notification settings - Fork 86
Union type assertions shouldn't care about the order #191
Comments
Related but closed: #61 |
I am having the same problem. dtslint reports that |
I am hitting this issue. When I make certain changes to my production Either order should not matter for unions (as the title of this issue suggests), or the order should remain stable. As it is, I can't figure out how to add the new function I want to my library without updating ~70 type expectations. And then what if the next function I add swaps them back? |
I made a branch on
|
There seems to be a large class of errors that stem from the fact that, while Would it be better to just transition to using |
Very interesting: I just found DefinitelyTyped/DefinitelyTyped#60016. Until that edit, I didn't realize that an or-operator ( |
We've hit an issue in the RxJS dtslint tests where a test is trying to assert:
And dtslint complains it wants
Observable<Observable<number> | IterableIterator<number> | string[]>
, but if you change it to that:... then it complains that you should change it back.
It seems like this is the wrong behavior:
a | b | c
is no different thanc | b | a
, AFAICT. ... but perhaps I'm wrong?Thank you in advance for your help.
The text was updated successfully, but these errors were encountered: