'intellisense for this keyword inside vue 2 component

I'm fighting with typescript intellisense to get to work for vue 2 component. I got it to work e.g. for my data() positions, but still struggle with this keyword. In VS and VS Code is shows as any. How can I set it to work properly?

This works as intended: enter image description here

This not: enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source