I use the VSCode and TypeScript classes to develop Vue 2 components. See: vuejs / vue-class-component .
In my current project, I use type plugins vue-i18n
for label translations, etc. These plugins extend Vue components with their own functions, such as this.$t(...)
to get a key translation, but VSCode doesnโt recognize / doesnโt from these extensions (or are they mixins?), Etc.
How can I find out VSCode that these extension functions exist and intellisense starts working? Can I create my own * .d.ts files? And if so, how can I connect them so that VSCode can find them for intellisense? Any example is welcome. Or a link to some Github repo example where this is done?
source
share