interface merging `ComponentCustomProperties` cause type error
Version
3.2.29
Reproduction link
Steps to reproduce
I was reading https://v3.vuejs.org/guide/typescript-support.html#augmenting-types-for-globalproperties
I tried this:
import axios from 'axios'
declare module '@vue/runtime-core' {
export interface ComponentCustomProperties {
$http: typeof axios
$validate: (data: object, rule: object) => boolean
}
}
but the code below will show an error if I have the above code
Module '"../../node_modules/vue/dist/vue"' has no exported member 'defineComponent'.Vetur(2305)
import { defineComponent } from "vue";
you can confirm the error at here
What is expected?
x
What is actually happening?
x
x