vue-next-webpack-preview icon indicating copy to clipboard operation
vue-next-webpack-preview copied to clipboard

Typescript support

Open ChrisShank opened this issue 4 years ago • 16 comments

I am adding Typescript and I am not certain what the shim for *.vue files should be? My best guess is:

// shims-vue.d.ts
declare module '*.vue' {
  import { Component } from 'vue'
  const component: Component
  export default component
}

does anyone know if this is correct?

ChrisShank avatar Jan 04 '20 20:01 ChrisShank