已经引入了 import.d.ts,其中 declare global 可以在 <script> 内直接使用,而且也有对应的类型提示。但是 interface ComponentCustomProperties 部分,虽然声明了,但是使用时依然没有类型提示。不清楚是 volar 问题,还是哪里的问题
// Generated by auto imports
export {}
declare global {
const abortNavigation: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['abortNavigation']
const addRouteMiddleware: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['addRouteMiddleware']
const clearError: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['clearError']
const clearNuxtData: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['clearNuxtData']
const computed: typeof import('vue')['computed']
const createError: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['createError']
const customRef: typeof import('vue')['customRef']
const defaultHook: typeof import('../../composables/index')['defaultHook']
const defineAppConfig: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['defineAppConfig']
const defineAsyncComponent: typeof import('vue')['defineAsyncComponent']
const defineComponent: typeof import('vue')['defineComponent']
const defineNuxtComponent: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['defineNuxtComponent']
const defineNuxtLink: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['defineNuxtLink']
const defineNuxtPlugin: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['defineNuxtPlugin']
const defineNuxtRouteMiddleware: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['defineNuxtRouteMiddleware']
const definePageMeta: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/pages/runtime/composables')['definePageMeta']
const effect: typeof import('vue')['effect']
const effectScope: typeof import('vue')['effectScope']
const fetchContentNavigation: typeof import('../../node_modules/_@nuxt_content@2.4.3@@nuxt/content/dist/runtime/composables/navigation')['fetchContentNavigation']
const getCurrentInstance: typeof import('vue')['getCurrentInstance']
const getCurrentScope: typeof import('vue')['getCurrentScope']
const h: typeof import('vue')['h']
const inject: typeof import('vue')['inject']
const isNuxtError: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['isNuxtError']
const isPrerendered: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['isPrerendered']
const isProxy: typeof import('vue')['isProxy']
const isReactive: typeof import('vue')['isReactive']
const isReadonly: typeof import('vue')['isReadonly']
const isRef: typeof import('vue')['isRef']
const isShallow: typeof import('vue')['isShallow']
const isVue2: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app/compat/vue-demi')['isVue2']
const isVue3: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app/compat/vue-demi')['isVue3']
const loadPayload: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['loadPayload']
const lowerCase: typeof import('../../utils/lower')['lowerCase']
const markRaw: typeof import('vue')['markRaw']
const navigateTo: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['navigateTo']
const nextTick: typeof import('vue')['nextTick']
const onActivated: typeof import('vue')['onActivated']
const onBeforeMount: typeof import('vue')['onBeforeMount']
const onBeforeRouteLeave: typeof import('vue-router')['onBeforeRouteLeave']
const onBeforeRouteUpdate: typeof import('vue-router')['onBeforeRouteUpdate']
const onBeforeUnmount: typeof import('vue')['onBeforeUnmount']
const onBeforeUpdate: typeof import('vue')['onBeforeUpdate']
const onDeactivated: typeof import('vue')['onDeactivated']
const onErrorCaptured: typeof import('vue')['onErrorCaptured']
const onMounted: typeof import('vue')['onMounted']
const onNuxtReady: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['onNuxtReady']
const onRenderTracked: typeof import('vue')['onRenderTracked']
const onRenderTriggered: typeof import('vue')['onRenderTriggered']
const onScopeDispose: typeof import('vue')['onScopeDispose']
const onServerPrefetch: typeof import('vue')['onServerPrefetch']
const onUnmounted: typeof import('vue')['onUnmounted']
const onUpdated: typeof import('vue')['onUpdated']
const prefetchComponents: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['prefetchComponents']
const preloadComponents: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['preloadComponents']
const preloadPayload: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['preloadPayload']
const preloadRouteComponents: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['preloadRouteComponents']
const provide: typeof import('vue')['provide']
const proxyRefs: typeof import('vue')['proxyRefs']
const queryContent: typeof import('../../node_modules/_@nuxt_content@2.4.3@@nuxt/content/dist/runtime/composables/query')['queryContent']
const reactive: typeof import('vue')['reactive']
const readonly: typeof import('vue')['readonly']
const ref: typeof import('vue')['ref']
const refreshNuxtData: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['refreshNuxtData']
const resolveComponent: typeof import('vue')['resolveComponent']
const setPageLayout: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['setPageLayout']
const setResponseStatus: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['setResponseStatus']
const shallowReactive: typeof import('vue')['shallowReactive']
const shallowReadonly: typeof import('vue')['shallowReadonly']
const shallowRef: typeof import('vue')['shallowRef']
const showError: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['showError']
const toRaw: typeof import('vue')['toRaw']
const toRef: typeof import('vue')['toRef']
const toRefs: typeof import('vue')['toRefs']
const triggerRef: typeof import('vue')['triggerRef']
const unref: typeof import('vue')['unref']
const updateAppConfig: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['updateAppConfig']
const useAppConfig: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useAppConfig']
const useAsyncData: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useAsyncData']
const useAttrs: typeof import('vue')['useAttrs']
const useColor: typeof import('../../composables/states')['useColor']
const useContent: typeof import('../../node_modules/_@nuxt_content@2.4.3@@nuxt/content/dist/runtime/composables/utils')['useContentDisabled']
const useContentHead: typeof import('../../node_modules/_@nuxt_content@2.4.3@@nuxt/content/dist/runtime/composables/head')['useContentHead']
const useContentHelpers: typeof import('../../node_modules/_@nuxt_content@2.4.3@@nuxt/content/dist/runtime/composables/helpers')['useContentHelpers']
const useContentState: typeof import('../../node_modules/_@nuxt_content@2.4.3@@nuxt/content/dist/runtime/composables/utils')['useContentDisabled']
const useCookie: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useCookie']
const useCounter: typeof import('../../composables/states')['useCounter']
const useCssModule: typeof import('vue')['useCssModule']
const useCssVars: typeof import('vue')['useCssVars']
const useError: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useError']
const useFetch: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useFetch']
const useHead: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useHead']
const useHooks: typeof import('../../composables/hooks/useHooks')['default']
const useLazyAsyncData: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useLazyAsyncData']
const useLazyFetch: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useLazyFetch']
const useLife: typeof import('../../composables/life')['useLife']
const useLink: typeof import('vue-router')['useLink']
const useName: typeof import('../../composables/states')['useName']
const useNuxtApp: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useNuxtApp']
const useNuxtData: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useNuxtData']
const useRequestEvent: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useRequestEvent']
const useRequestFetch: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useRequestFetch']
const useRequestHeaders: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useRequestHeaders']
const useRoute: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useRoute']
const useRouter: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useRouter']
const useRuntimeConfig: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useRuntimeConfig']
const useSeoMeta: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useSeoMeta']
const useServerSeoMeta: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useServerSeoMeta']
const useSlots: typeof import('vue')['useSlots']
const useStake: typeof import('../../composables/states')['useStake']
const useState: typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useState']
const useTransitionState: typeof import('vue')['useTransitionState']
const useUnwrap: typeof import('../../node_modules/_@nuxt_content@2.4.3@@nuxt/content/dist/runtime/composables/utils')['useUnwrap']
const watch: typeof import('vue')['watch']
const watchEffect: typeof import('vue')['watchEffect']
const withContentBase: typeof import('../../node_modules/_@nuxt_content@2.4.3@@nuxt/content/dist/runtime/composables/utils')['withContentBase']
const withCtx: typeof import('vue')['withCtx']
const withDirectives: typeof import('vue')['withDirectives']
const withKeys: typeof import('vue')['withKeys']
const withMemo: typeof import('vue')['withMemo']
const withModifiers: typeof import('vue')['withModifiers']
const withScopeId: typeof import('vue')['withScopeId']
}
// for type re-export
declare global {
// @ts-ignore
export type { Component,ComponentPublicInstance,ComputedRef,InjectionKey,PropType,Ref,VNode } from 'vue'
}
// for vue template auto import
import { UnwrapRef } from 'vue'
declare module 'vue' {
interface ComponentCustomProperties {
readonly abortNavigation: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['abortNavigation']>
readonly addRouteMiddleware: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['addRouteMiddleware']>
readonly clearError: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['clearError']>
readonly clearNuxtData: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['clearNuxtData']>
readonly computed: UnwrapRef<typeof import('vue')['computed']>
readonly createError: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['createError']>
readonly customRef: UnwrapRef<typeof import('vue')['customRef']>
readonly defaultHook: UnwrapRef<typeof import('../../composables/index')['defaultHook']>
readonly defineAppConfig: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['defineAppConfig']>
readonly defineAsyncComponent: UnwrapRef<typeof import('vue')['defineAsyncComponent']>
readonly defineComponent: UnwrapRef<typeof import('vue')['defineComponent']>
readonly defineNuxtComponent: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['defineNuxtComponent']>
readonly defineNuxtLink: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['defineNuxtLink']>
readonly defineNuxtPlugin: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['defineNuxtPlugin']>
readonly defineNuxtRouteMiddleware: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['defineNuxtRouteMiddleware']>
readonly definePageMeta: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/pages/runtime/composables')['definePageMeta']>
readonly effect: UnwrapRef<typeof import('vue')['effect']>
readonly effectScope: UnwrapRef<typeof import('vue')['effectScope']>
readonly fetchContentNavigation: UnwrapRef<typeof import('../../node_modules/_@nuxt_content@2.4.3@@nuxt/content/dist/runtime/composables/navigation')['fetchContentNavigation']>
readonly getCurrentInstance: UnwrapRef<typeof import('vue')['getCurrentInstance']>
readonly getCurrentScope: UnwrapRef<typeof import('vue')['getCurrentScope']>
readonly h: UnwrapRef<typeof import('vue')['h']>
readonly inject: UnwrapRef<typeof import('vue')['inject']>
readonly isNuxtError: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['isNuxtError']>
readonly isPrerendered: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['isPrerendered']>
readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']>
readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>
readonly isReadonly: UnwrapRef<typeof import('vue')['isReadonly']>
readonly isRef: UnwrapRef<typeof import('vue')['isRef']>
readonly isShallow: UnwrapRef<typeof import('vue')['isShallow']>
readonly isVue2: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app/compat/vue-demi')['isVue2']>
readonly isVue3: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app/compat/vue-demi')['isVue3']>
readonly loadPayload: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['loadPayload']>
readonly lowerCase: UnwrapRef<typeof import('../../utils/lower')['lowerCase']>
readonly markRaw: UnwrapRef<typeof import('vue')['markRaw']>
readonly navigateTo: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['navigateTo']>
readonly nextTick: UnwrapRef<typeof import('vue')['nextTick']>
readonly onActivated: UnwrapRef<typeof import('vue')['onActivated']>
readonly onBeforeMount: UnwrapRef<typeof import('vue')['onBeforeMount']>
readonly onBeforeRouteLeave: UnwrapRef<typeof import('vue-router')['onBeforeRouteLeave']>
readonly onBeforeRouteUpdate: UnwrapRef<typeof import('vue-router')['onBeforeRouteUpdate']>
readonly onBeforeUnmount: UnwrapRef<typeof import('vue')['onBeforeUnmount']>
readonly onBeforeUpdate: UnwrapRef<typeof import('vue')['onBeforeUpdate']>
readonly onDeactivated: UnwrapRef<typeof import('vue')['onDeactivated']>
readonly onErrorCaptured: UnwrapRef<typeof import('vue')['onErrorCaptured']>
readonly onMounted: UnwrapRef<typeof import('vue')['onMounted']>
readonly onNuxtReady: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['onNuxtReady']>
readonly onRenderTracked: UnwrapRef<typeof import('vue')['onRenderTracked']>
readonly onRenderTriggered: UnwrapRef<typeof import('vue')['onRenderTriggered']>
readonly onScopeDispose: UnwrapRef<typeof import('vue')['onScopeDispose']>
readonly onServerPrefetch: UnwrapRef<typeof import('vue')['onServerPrefetch']>
readonly onUnmounted: UnwrapRef<typeof import('vue')['onUnmounted']>
readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>
readonly prefetchComponents: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['prefetchComponents']>
readonly preloadComponents: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['preloadComponents']>
readonly preloadPayload: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['preloadPayload']>
readonly preloadRouteComponents: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['preloadRouteComponents']>
readonly provide: UnwrapRef<typeof import('vue')['provide']>
readonly proxyRefs: UnwrapRef<typeof import('vue')['proxyRefs']>
readonly queryContent: UnwrapRef<typeof import('../../node_modules/_@nuxt_content@2.4.3@@nuxt/content/dist/runtime/composables/query')['queryContent']>
readonly reactive: UnwrapRef<typeof import('vue')['reactive']>
readonly readonly: UnwrapRef<typeof import('vue')['readonly']>
readonly ref: UnwrapRef<typeof import('vue')['ref']>
readonly refreshNuxtData: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['refreshNuxtData']>
readonly resolveComponent: UnwrapRef<typeof import('vue')['resolveComponent']>
readonly setPageLayout: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['setPageLayout']>
readonly setResponseStatus: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['setResponseStatus']>
readonly shallowReactive: UnwrapRef<typeof import('vue')['shallowReactive']>
readonly shallowReadonly: UnwrapRef<typeof import('vue')['shallowReadonly']>
readonly shallowRef: UnwrapRef<typeof import('vue')['shallowRef']>
readonly showError: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['showError']>
readonly toRaw: UnwrapRef<typeof import('vue')['toRaw']>
readonly toRef: UnwrapRef<typeof import('vue')['toRef']>
readonly toRefs: UnwrapRef<typeof import('vue')['toRefs']>
readonly triggerRef: UnwrapRef<typeof import('vue')['triggerRef']>
readonly unref: UnwrapRef<typeof import('vue')['unref']>
readonly updateAppConfig: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['updateAppConfig']>
readonly useAppConfig: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useAppConfig']>
readonly useAsyncData: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useAsyncData']>
readonly useAttrs: UnwrapRef<typeof import('vue')['useAttrs']>
readonly useColor: UnwrapRef<typeof import('../../composables/states')['useColor']>
readonly useContent: UnwrapRef<typeof import('../../node_modules/_@nuxt_content@2.4.3@@nuxt/content/dist/runtime/composables/utils')['useContentDisabled']>
readonly useContentHead: UnwrapRef<typeof import('../../node_modules/_@nuxt_content@2.4.3@@nuxt/content/dist/runtime/composables/head')['useContentHead']>
readonly useContentHelpers: UnwrapRef<typeof import('../../node_modules/_@nuxt_content@2.4.3@@nuxt/content/dist/runtime/composables/helpers')['useContentHelpers']>
readonly useContentState: UnwrapRef<typeof import('../../node_modules/_@nuxt_content@2.4.3@@nuxt/content/dist/runtime/composables/utils')['useContentDisabled']>
readonly useCookie: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useCookie']>
readonly useCounter: UnwrapRef<typeof import('../../composables/states')['useCounter']>
readonly useCssModule: UnwrapRef<typeof import('vue')['useCssModule']>
readonly useCssVars: UnwrapRef<typeof import('vue')['useCssVars']>
readonly useError: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useError']>
readonly useFetch: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useFetch']>
readonly useHead: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useHead']>
readonly useHooks: UnwrapRef<typeof import('../../composables/hooks/useHooks')['default']>
readonly useLazyAsyncData: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useLazyAsyncData']>
readonly useLazyFetch: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useLazyFetch']>
readonly useLife: UnwrapRef<typeof import('../../composables/life')['useLife']>
readonly useLink: UnwrapRef<typeof import('vue-router')['useLink']>
readonly useName: UnwrapRef<typeof import('../../composables/states')['useName']>
readonly useNuxtApp: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useNuxtApp']>
readonly useNuxtData: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useNuxtData']>
readonly useRequestEvent: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useRequestEvent']>
readonly useRequestFetch: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useRequestFetch']>
readonly useRequestHeaders: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useRequestHeaders']>
readonly useRoute: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useRoute']>
readonly useRouter: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useRouter']>
readonly useRuntimeConfig: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useRuntimeConfig']>
readonly useSeoMeta: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useSeoMeta']>
readonly useServerSeoMeta: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useServerSeoMeta']>
readonly useSlots: UnwrapRef<typeof import('vue')['useSlots']>
readonly useStake: UnwrapRef<typeof import('../../composables/states')['useStake']>
readonly useState: UnwrapRef<typeof import('../../node_modules/_nuxt@3.2.3@nuxt/dist/app')['useState']>
readonly useTransitionState: UnwrapRef<typeof import('vue')['useTransitionState']>
readonly useUnwrap: UnwrapRef<typeof import('../../node_modules/_@nuxt_content@2.4.3@@nuxt/content/dist/runtime/composables/utils')['useUnwrap']>
readonly watch: UnwrapRef<typeof import('vue')['watch']>
readonly watchEffect: UnwrapRef<typeof import('vue')['watchEffect']>
readonly withContentBase: UnwrapRef<typeof import('../../node_modules/_@nuxt_content@2.4.3@@nuxt/content/dist/runtime/composables/utils')['withContentBase']>
readonly withCtx: UnwrapRef<typeof import('vue')['withCtx']>
readonly withDirectives: UnwrapRef<typeof import('vue')['withDirectives']>
readonly withKeys: UnwrapRef<typeof import('vue')['withKeys']>
readonly withMemo: UnwrapRef<typeof import('vue')['withMemo']>
readonly withModifiers: UnwrapRef<typeof import('vue')['withModifiers']>
readonly withScopeId: UnwrapRef<typeof import('vue')['withScopeId']>
}
}
可能是因为使用时没有正确导入 ComponentCustomProperties 的类型。请确保在使用的地方正确导入 import { ComponentCustomProperties } from "vue"。
另外,如果你在使用 TypeScript 的情况下,建议在 tsconfig.json 中的 compilerOptions 中添加 "types": ["vite/client"],这样就可以正确识别 ComponentCustomProperties 的类型。
插件的版本也升级一下