-
Notifications
You must be signed in to change notification settings - Fork 641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
got 「unknown」 type when using Instance<typeof SomeModel> #2217
Comments
@JLUiceman are you on the latest version? I wasn't able to reproduce :( |
@thegedge Thanks for reply! Yes, project's current mst version is 6.0.1; |
Great question! If I had to guess, it's one of three things:
|
That being said, I'll flag this as a perhaps a small docs update where we could have a callout for issues with types when using WebStorm. If you do figure out what the issue is, though, drop a comment here :) |
Yep, I will also continue to follow up on this issue and try to find out the possible reasons. If there are further conclusions, I will comment here. |
Bug report
Sandbox link or minimal reproduction code
I try to get the type of model by using Instance method just like the doc recommended, but the result confused me:
when i define a model like the pic below, it works fine
but when i define a model in this way, i got a unknown type
Is there anyway i can avoid this or i just missed some key information when reading the doc?
The text was updated successfully, but these errors were encountered: