Eugene Obrezkov
Eugene Obrezkov
@AurelienWebnation maybe the type system became smart enough to figure it out? Try on the older versions of TypeScript if you are interested in getting an answer to this.
@marked42 sweet, I didn't think about compound here, thanks for the solution!
@zavarka clever 😺 I think there could be some edge-cases with properties in a sense how they will be treated when intersecting them, but for common cases should work, yes.
@BruceYuj yes, because your key can be either in first set or another one, and you need to filter out one of them.
Yeah, I guess. I don't remember why I used it, but it is definitely against the rules here :) However, implement `Equal` on our own should not be a problem....
@zhaoyao91 there is no reason, it just a preferable choice for me.
@Brysonmk1984 > how is 'never' interchangeable with 'T'? It's not in this context. As I said, it was just a choice, not based on anything. Feel free to return `never`...
@gauravpan interesting, can you explain step by step why it works?
@zhaoyao91 did you manage to improve the solution to get those tests passing?
@AurelienWebnation Personally, I don't see the reason for that because we check it with conditional type anyway…