Currently, I am utilizing VSCode alongside TypeScript classes for developing Vue 2 components. You can check out more information at: vuejs/vue-class-component.
Within my present project, I make use of plugins like vue-i18n
for handling translations of labels and other elements. These plugins extend the functionalities of Vue components by adding their own methods such as this.$t(...)
to retrieve a translation based on a key. However, VSCode does not recognize or acknowledge these extensions (or mixins) automatically.
I am seeking guidance on how to teach VSCode about the existence of these extension functions in order for intellisense to start working properly. Is it possible to create my own *.d.ts files? If so, what is the process for linking them so that VSCode can access them for intellisense suggestions? Any examples or links to repositories demonstrating this would be greatly appreciated.