How to handle injected properties by plugins?
dvic opened this issue · 1 comments
dvic commented
I'm using tsx.componentFactoryOf<IEvents>().create({})
and I have some Vue plugins that inject additional fields into my Vue components. How can I make Typescript aware of these additional fields? (similar to this.$router
)
dvic commented
Never mind, I just found the solution: https://vuejs.org/v2/guide/typescript.html#Augmenting-Types-for-Use-with-Plugins