Skip to content

Commit

Permalink
fix(vue-template): augmente types with @vue/runtime-core (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Jun 24, 2022
1 parent f371b9b commit 7c83d44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/addons/vue-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const vueTemplateAddon = (): Addon => ({
`
// for vue template auto import
import { UnwrapRef } from 'vue'
declare module 'vue' {
declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
${items.map(i => ' ' + i).join('\n')}
}
Expand Down
2 changes: 1 addition & 1 deletion test/vue-template.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ describe('vue-template', () => {
}
// for vue template auto import
import { UnwrapRef } from 'vue'
declare module 'vue' {
declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
readonly foo: UnwrapRef<typeof import('foo')['foo']>
}
Expand Down

0 comments on commit 7c83d44

Please sign in to comment.