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
If you comment out lines 46-48 (the fake computed property), the type error on line 52 goes away. It seems mapState and mapGetters merges in an interface property, [x: string] => any whenever they're used. But if other computed properties are added, this fails to exist.
For instance, with lines 46-48 not commented out, I mouse over this in the method, and I see this:
Version
3.0.1
Reproduction link
https://github.com/ffxsam/repro-mapstate-bug
Steps to reproduce
What is expected?
There should be no type errors
What is actually happening?
There is a type error on line 52
If you comment out lines 46-48 (the
fake
computed property), the type error on line 52 goes away. It seemsmapState
andmapGetters
merges in an interface property,[x: string] => any
whenever they're used. But if other computed properties are added, this fails to exist.For instance, with lines 46-48 not commented out, I mouse over
this
in the method, and I see this:However, if I comment out lines 46-48, hovering over
this
reveals:The text was updated successfully, but these errors were encountered: