fix: better volar type inference for template bindings on refs
This commit is contained in:
@@ -136,6 +136,7 @@
|
|||||||
"@types/splitpanes": "^2.2.1",
|
"@types/splitpanes": "^2.2.1",
|
||||||
"@types/uuid": "^8.3.3",
|
"@types/uuid": "^8.3.3",
|
||||||
"@urql/devtools": "^2.0.3",
|
"@urql/devtools": "^2.0.3",
|
||||||
|
"@vue/composition-api": "^1.4.1",
|
||||||
"@vue/runtime-dom": "^3.2.26",
|
"@vue/runtime-dom": "^3.2.26",
|
||||||
"@vue/test-utils": "^1.3.0",
|
"@vue/test-utils": "^1.3.0",
|
||||||
"babel-core": "^7.0.0-bridge.0",
|
"babel-core": "^7.0.0-bridge.0",
|
||||||
|
|||||||
11
packages/hoppscotch-app/vue2-shim.d.ts
vendored
Normal file
11
packages/hoppscotch-app/vue2-shim.d.ts
vendored
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
// workaround for Volar to infer the ref type in <template>
|
||||||
|
// https://github.com/johnsoncodehk/volar/issues/404
|
||||||
|
declare module "@vue/runtime-dom" {
|
||||||
|
export * from "@vue/runtime-dom/dist/runtime-dom"
|
||||||
|
export {
|
||||||
|
defineComponent,
|
||||||
|
PropType,
|
||||||
|
ObjectDirective,
|
||||||
|
FunctionDirective,
|
||||||
|
} from "@vue/composition-api"
|
||||||
|
}
|
||||||
3
pnpm-lock.yaml
generated
3
pnpm-lock.yaml
generated
@@ -105,6 +105,7 @@ importers:
|
|||||||
'@urql/devtools': ^2.0.3
|
'@urql/devtools': ^2.0.3
|
||||||
'@urql/exchange-auth': ^0.1.7
|
'@urql/exchange-auth': ^0.1.7
|
||||||
'@urql/exchange-graphcache': ^4.3.6
|
'@urql/exchange-graphcache': ^4.3.6
|
||||||
|
'@vue/composition-api': ^1.4.1
|
||||||
'@vue/runtime-dom': ^3.2.26
|
'@vue/runtime-dom': ^3.2.26
|
||||||
'@vue/test-utils': ^1.3.0
|
'@vue/test-utils': ^1.3.0
|
||||||
acorn: ^8.6.0
|
acorn: ^8.6.0
|
||||||
@@ -269,6 +270,7 @@ importers:
|
|||||||
'@types/splitpanes': 2.2.1
|
'@types/splitpanes': 2.2.1
|
||||||
'@types/uuid': 8.3.3
|
'@types/uuid': 8.3.3
|
||||||
'@urql/devtools': 2.0.3_@urql+core@2.3.6+graphql@15.7.2
|
'@urql/devtools': 2.0.3_@urql+core@2.3.6+graphql@15.7.2
|
||||||
|
'@vue/composition-api': 1.4.1
|
||||||
'@vue/runtime-dom': 3.2.26
|
'@vue/runtime-dom': 3.2.26
|
||||||
'@vue/test-utils': 1.3.0
|
'@vue/test-utils': 1.3.0
|
||||||
babel-core: 7.0.0-bridge.0_@babel+core@7.16.5
|
babel-core: 7.0.0-bridge.0_@babel+core@7.16.5
|
||||||
@@ -5225,7 +5227,6 @@ packages:
|
|||||||
vue: '>= 2.5 < 3'
|
vue: '>= 2.5 < 3'
|
||||||
dependencies:
|
dependencies:
|
||||||
tslib: 2.3.1
|
tslib: 2.3.1
|
||||||
dev: false
|
|
||||||
|
|
||||||
/@vue/reactivity/3.2.26:
|
/@vue/reactivity/3.2.26:
|
||||||
resolution: {integrity: sha512-h38bxCZLW6oFJVDlCcAiUKFnXI8xP8d+eO0pcDxx+7dQfSPje2AO6M9S9QO6MrxQB7fGP0DH0dYQ8ksf6hrXKQ==}
|
resolution: {integrity: sha512-h38bxCZLW6oFJVDlCcAiUKFnXI8xP8d+eO0pcDxx+7dQfSPje2AO6M9S9QO6MrxQB7fGP0DH0dYQ8ksf6hrXKQ==}
|
||||||
|
|||||||
Reference in New Issue
Block a user