Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit cd24f26

Browse files
committed
fix(types): ref unwrapping in template, kudos @johnsoncodehk !
1 parent e0b0a78 commit cd24f26

File tree

9 files changed

+11
-189
lines changed

9 files changed

+11
-189
lines changed

global.d.ts

Lines changed: 0 additions & 181 deletions
This file was deleted.

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
import './global'
1+
import './shims'
22
export * from './dist/index'

nuxt.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import './global'
1+
import './shims'
22
export * from './dist/nuxt'
33
export { default } from './dist/nuxt'

playground/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"vue": "^2.6.14"
99
},
1010
"devDependencies": {
11-
"@vue/reactivity": "^3.2.4",
1211
"vite": "^2.5.0",
1312
"vite-plugin-inspect": "^0.2.2",
1413
"vite-plugin-vue2": "^1.8.1",

pnpm-lock.yaml

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rollup-plugin.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import './global'
1+
import './shims'
22
export * from './dist/rollup-plugin'
33
export { default } from './dist/rollup-plugin'

shims.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// workaround for Volar to infer the ref type in <template>
2+
// https://github.com/johnsoncodehk/volar/issues/404
3+
declare module '@vue/runtime-dom' {
4+
export * from '@vue/runtime-dom/dist/runtime-dom'
5+
export { defineComponent, PropType } from '@vue/composition-api'
6+
}

vite-plugin.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import './global'
1+
import './shims'
22
export * from './dist/vite-plugin'
33
export { default } from './dist/vite-plugin'

webpack-plugin.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import './global'
1+
import './shims'
22
export * from './dist/webpack-plugin'
33
export { default } from './dist/webpack-plugin'

0 commit comments

Comments
 (0)