Intersection type level operator & has changed in the last versions of TypeScript. The current behavior escalates 'never' type, so if any of fi...
For further actions, you may consider blocking this person and/or reporting abuse
I curious to know if there is a simpler solution.
typescriptlang.org/play?#code/PTAE...
Here is mine: Playground
Really neat one 👍
My solution: bit.ly/35ojBlc
code:
I hope I understand the task properly. Unfortunately my solution doesn't show anything except "XY" when you hover it. But it looks like it passes the test.
I didn't read it properly. But, BTW, my task is more interesting :)
My code really merges 2 objects. But it avoids "never" during merge. When there's never it takes the 2nd arguments value.
It was a great series of exercises! Thank you, Maciej!
Here is my last solution