Closed gregbrinker closed 1 year ago
Hey @gregbrinker - I'm really sorry it took so long for anyone to get back to you here. I'm curious if you're still having this problem. If so, can you provide more information about your Intellisense setup? My VS Code seems to autofill things correctly with the code snippet you wrote:
I'm going to tag this as needs more info for now, and again, sorry it took so long!
Closin' out. Sorry we didn't help ya when it was more relevant!
Question
Hello! Relatively new to MST (<6 months). I have a type, let's call it TypeA. I also have a TypeB, which is a clone of TypeA with a few extra actions:
Let's say I have a functional component that has a prop called
bModel: TypeBModel
. In the component, hovering overbModel
says it's of typeany
. When I typebModel.
, there aren't any autocomplete suggestions -action1()
,action2()
, or any of the props. The code runs fine,bModel.action1()
calls the correct action as expected. But the autocomplete not working is just really annoying 😢 This doesn't happen toTypeAModel
though, Intellisense can pick up on those just fine.If anyone knows how to solve this, it would be much appreciated!