You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the expected behavior
I have a function that accepts an instance of a model, when calling this function from within an action on that model and passing self as an argument typescript won't accept it. So using cast would make typescript happy again.
Describe the observed behavior
Using cast doesn't work when the model has a types.references present. An error is thrown: "Two different types with this name exist, but they are unrelated."
The text was updated successfully, but these errors were encountered:
Bug report
Sandbox link or minimal reproduction code
https://codesandbox.io/s/mobx-state-tree-todolist-forked-zcdbg
Describe the expected behavior
I have a function that accepts an instance of a model, when calling this function from within an action on that model and passing
self
as an argument typescript won't accept it. So using cast would make typescript happy again.Describe the observed behavior
Using cast doesn't work when the model has a
types.references
present. An error is thrown: "Two different types with this name exist, but they are unrelated."The text was updated successfully, but these errors were encountered: