RootStore type becomes "any" the moment we call a RootStore model action using yield on a child model action #2040
Labels
help/PR welcome
Help/Pull request from contributors to fix the issue is welcome
Typescript
Issue related to Typescript typings
Bug report
Sandbox link or minimal reproduction code
Here is the repro
Describe the expected behavior
The typings should not become any and there shouldn't be any circular reference error.
Describe the observed behavior
The problem starts when using
yield
with a RootStore action within a child model. I do not have a problem getting the RootStore or even executing it's actions, it just happens when usingyield
with an async function. See line 13, 14 and 15 of theRootStore.ts
file.The text was updated successfully, but these errors were encountered: