in such a way that the latter type will overwrite types of fields of former type.
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.
I am Software Developer, currently interested in static type languages (TypeScript, Elm, ReScript) mostly in the frontend land, but working actively in Python also. I am available for mentoring.
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.
I curious to know if there is a simpler solution.
typescriptlang.org/play?#code/PTAE...
Here is mine: Playground
Really neat one 👍
It was a great series of exercises! Thank you, Maciej!
Here is my last solution