Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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[]
  }
}
 
PREVIOUS NEXT
Tagged: #vue #typescript #extend #component #option
ADD COMMENT
Topic
Name
4+7 =