Skip to content

Property '$options' does not exist on type 'VueConstructor<Vue>'. #10776

Open
@zsluedem

Description

@zsluedem

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions