Answers for "vue typescript extend component option"

1

vue typescript extend component option

import Vue from 'vue' // <-- Do not delete that !!!

declare module 'vue/types/options' {
  interface ComponentOptions<V extends Vue> {
    emits?: string[]
  }
}
Posted by: Guest on October-22-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language