fix: better volar type inference for template bindings on refs
This commit is contained in:
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"
|
||||
}
|
||||
Reference in New Issue
Block a user