Open
Description
Version
2.6.10
Reproduction link
https://jsfiddle.net/jafbudpk/3/#&togetherjs=HlrrSLGnsb
Steps to reproduce
import Vue, { PluginFunction } from 'vue';
interface PluginOptions {}
export const Plugin: PluginFunction<PluginOptions> = function Plugin(Vue, PluginOptions): void {
Vue.mixin({
created() {
this.$options.socket = 1;
}
});
};
What is expected?
The $option
should be already type right.
What is actually happening?
Property '$options' does not exist on type 'VueConstructor'.ts(2339)