Skip to content

Commit

Permalink
Update shims-vue.d.ts
Browse files Browse the repository at this point in the history
see vuejs/vue-next-webpack-preview#5 (comment)

but we may lose the ability to  locate the `.vue` file in `.ts`
  • Loading branch information
HomyeeKing authored Feb 4, 2021
1 parent 8e49244 commit 42fdd38
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/shims-vue.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { defineComponent } from 'vue'

declare module '*.vue' {
const Component: ReturnType<typeof defineComponent>
export default Component
import { ComponentOptions } from 'vue'
const component: ReturnType<ComponentOptions>
export default component
}

declare module '*.md' {
Expand Down

0 comments on commit 42fdd38

Please sign in to comment.