Getter type
#855
Replies: 1 comment
-
decorators cannot affect the typescript type, you either need to change the type from |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, please take a look at my issue. Here is sample code.
So, for legacy code reasons I assign Map<string, UserPurse> type to .purses field, but I need to get
{ [key: string]: UserPurse }
type when I reference .purses field. However, despite getter type TS still thinks it's Map<string, UserPurse> when I reference it. How do I fix it?Beta Was this translation helpful? Give feedback.
All reactions