Working with the mobx-state-tree library, I've encountered some complex TypeScript declarations that are proving difficult for me to understand.
It appears that there was a change between TS 3.4 and 3.5 that triggered an unexpected issue.
https://i.sstatic.net/mKkfC.png
To demonstrate the problem, I have created a minimal reproduction in a repository: https://github.com/FredyC/mobx-state-tree-ts3.5
I realize this is likely a very specific problem that will require thorough investigation. I would be grateful for any guidance on what changes in TS 3.5 might be causing such an issue.
Update
After following the advice in this answer , I adjusted the example in a repo and encountered a similar error. It seems that mobx-state-tree may be exploiting a bug in TS that was fixed in version 3.5, resulting in these disruptions.