@@ -103,18 +103,91 @@ declare global {
103103}
104104
105105// for vue template auto import
106- type UnwrapRefs < T > = {
107- [ K in keyof T ] : import ( 'vue' ) . UnwrapRef < T [ K ] >
108- }
109- namespace _ComponentCustomProperties {
110- const { $gettext, $ngettext, $npgettext, $pgettext } : typeof import ( '@/gettext' )
111- const { App } : typeof import ( 'ant-design-vue' )
112- const { EffectScope, computed, createApp, customRef, defineAsyncComponent, defineComponent, effectScope, getCurrentInstance, getCurrentScope, getCurrentWatcher, h, inject, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, nextTick, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, onWatcherCleanup, provide, reactive, readonly, ref, resolveComponent, shallowReactive, shallowReadonly, shallowRef, toRaw, toRef, toRefs, toValue, triggerRef, unref, useAttrs, useCssModule, useCssVars, useId, useModel, useSlots, useTemplateRef, watch, watchEffect, watchPostEffect, watchSyncEffect } : typeof import ( 'vue' )
113- const { T } : typeof import ( '@/language' )
114- const { acceptHMRUpdate, createPinia, defineStore, getActivePinia, mapActions, mapGetters, mapState, mapStores, mapWritableState, setActivePinia, setMapStoreSuffix, storeToRefs } : typeof import ( 'pinia' )
115- const { onBeforeRouteLeave, onBeforeRouteUpdate, useLink, useRoute, useRouter } : typeof import ( 'vue-router' )
116- const { useGlobalApp } : typeof import ( '@/composables/useGlobalApp' )
117- }
106+ import { UnwrapRef } from 'vue'
118107declare module 'vue' {
119- interface ComponentCustomProperties extends UnwrapRefs < typeof _ComponentCustomProperties > { }
108+ interface GlobalComponents { }
109+ interface ComponentCustomProperties {
110+ readonly $gettext : UnwrapRef < typeof import ( '@/gettext' ) [ '$gettext' ] >
111+ readonly $ngettext : UnwrapRef < typeof import ( '@/gettext' ) [ '$ngettext' ] >
112+ readonly $npgettext : UnwrapRef < typeof import ( '@/gettext' ) [ '$npgettext' ] >
113+ readonly $pgettext : UnwrapRef < typeof import ( '@/gettext' ) [ '$pgettext' ] >
114+ readonly App : UnwrapRef < typeof import ( 'ant-design-vue' ) [ 'App' ] >
115+ readonly EffectScope : UnwrapRef < typeof import ( 'vue' ) [ 'EffectScope' ] >
116+ readonly T : UnwrapRef < typeof import ( '@/language' ) [ 'T' ] >
117+ readonly acceptHMRUpdate : UnwrapRef < typeof import ( 'pinia' ) [ 'acceptHMRUpdate' ] >
118+ readonly computed : UnwrapRef < typeof import ( 'vue' ) [ 'computed' ] >
119+ readonly createApp : UnwrapRef < typeof import ( 'vue' ) [ 'createApp' ] >
120+ readonly createPinia : UnwrapRef < typeof import ( 'pinia' ) [ 'createPinia' ] >
121+ readonly customRef : UnwrapRef < typeof import ( 'vue' ) [ 'customRef' ] >
122+ readonly defineAsyncComponent : UnwrapRef < typeof import ( 'vue' ) [ 'defineAsyncComponent' ] >
123+ readonly defineComponent : UnwrapRef < typeof import ( 'vue' ) [ 'defineComponent' ] >
124+ readonly defineStore : UnwrapRef < typeof import ( 'pinia' ) [ 'defineStore' ] >
125+ readonly effectScope : UnwrapRef < typeof import ( 'vue' ) [ 'effectScope' ] >
126+ readonly getActivePinia : UnwrapRef < typeof import ( 'pinia' ) [ 'getActivePinia' ] >
127+ readonly getCurrentInstance : UnwrapRef < typeof import ( 'vue' ) [ 'getCurrentInstance' ] >
128+ readonly getCurrentScope : UnwrapRef < typeof import ( 'vue' ) [ 'getCurrentScope' ] >
129+ readonly getCurrentWatcher : UnwrapRef < typeof import ( 'vue' ) [ 'getCurrentWatcher' ] >
130+ readonly h : UnwrapRef < typeof import ( 'vue' ) [ 'h' ] >
131+ readonly inject : UnwrapRef < typeof import ( 'vue' ) [ 'inject' ] >
132+ readonly isProxy : UnwrapRef < typeof import ( 'vue' ) [ 'isProxy' ] >
133+ readonly isReactive : UnwrapRef < typeof import ( 'vue' ) [ 'isReactive' ] >
134+ readonly isReadonly : UnwrapRef < typeof import ( 'vue' ) [ 'isReadonly' ] >
135+ readonly isRef : UnwrapRef < typeof import ( 'vue' ) [ 'isRef' ] >
136+ readonly isShallow : UnwrapRef < typeof import ( 'vue' ) [ 'isShallow' ] >
137+ readonly mapActions : UnwrapRef < typeof import ( 'pinia' ) [ 'mapActions' ] >
138+ readonly mapGetters : UnwrapRef < typeof import ( 'pinia' ) [ 'mapGetters' ] >
139+ readonly mapState : UnwrapRef < typeof import ( 'pinia' ) [ 'mapState' ] >
140+ readonly mapStores : UnwrapRef < typeof import ( 'pinia' ) [ 'mapStores' ] >
141+ readonly mapWritableState : UnwrapRef < typeof import ( 'pinia' ) [ 'mapWritableState' ] >
142+ readonly markRaw : UnwrapRef < typeof import ( 'vue' ) [ 'markRaw' ] >
143+ readonly nextTick : UnwrapRef < typeof import ( 'vue' ) [ 'nextTick' ] >
144+ readonly onActivated : UnwrapRef < typeof import ( 'vue' ) [ 'onActivated' ] >
145+ readonly onBeforeMount : UnwrapRef < typeof import ( 'vue' ) [ 'onBeforeMount' ] >
146+ readonly onBeforeRouteLeave : UnwrapRef < typeof import ( 'vue-router' ) [ 'onBeforeRouteLeave' ] >
147+ readonly onBeforeRouteUpdate : UnwrapRef < typeof import ( 'vue-router' ) [ 'onBeforeRouteUpdate' ] >
148+ readonly onBeforeUnmount : UnwrapRef < typeof import ( 'vue' ) [ 'onBeforeUnmount' ] >
149+ readonly onBeforeUpdate : UnwrapRef < typeof import ( 'vue' ) [ 'onBeforeUpdate' ] >
150+ readonly onDeactivated : UnwrapRef < typeof import ( 'vue' ) [ 'onDeactivated' ] >
151+ readonly onErrorCaptured : UnwrapRef < typeof import ( 'vue' ) [ 'onErrorCaptured' ] >
152+ readonly onMounted : UnwrapRef < typeof import ( 'vue' ) [ 'onMounted' ] >
153+ readonly onRenderTracked : UnwrapRef < typeof import ( 'vue' ) [ 'onRenderTracked' ] >
154+ readonly onRenderTriggered : UnwrapRef < typeof import ( 'vue' ) [ 'onRenderTriggered' ] >
155+ readonly onScopeDispose : UnwrapRef < typeof import ( 'vue' ) [ 'onScopeDispose' ] >
156+ readonly onServerPrefetch : UnwrapRef < typeof import ( 'vue' ) [ 'onServerPrefetch' ] >
157+ readonly onUnmounted : UnwrapRef < typeof import ( 'vue' ) [ 'onUnmounted' ] >
158+ readonly onUpdated : UnwrapRef < typeof import ( 'vue' ) [ 'onUpdated' ] >
159+ readonly onWatcherCleanup : UnwrapRef < typeof import ( 'vue' ) [ 'onWatcherCleanup' ] >
160+ readonly provide : UnwrapRef < typeof import ( 'vue' ) [ 'provide' ] >
161+ readonly reactive : UnwrapRef < typeof import ( 'vue' ) [ 'reactive' ] >
162+ readonly readonly : UnwrapRef < typeof import ( 'vue' ) [ 'readonly' ] >
163+ readonly ref : UnwrapRef < typeof import ( 'vue' ) [ 'ref' ] >
164+ readonly resolveComponent : UnwrapRef < typeof import ( 'vue' ) [ 'resolveComponent' ] >
165+ readonly setActivePinia : UnwrapRef < typeof import ( 'pinia' ) [ 'setActivePinia' ] >
166+ readonly setMapStoreSuffix : UnwrapRef < typeof import ( 'pinia' ) [ 'setMapStoreSuffix' ] >
167+ readonly shallowReactive : UnwrapRef < typeof import ( 'vue' ) [ 'shallowReactive' ] >
168+ readonly shallowReadonly : UnwrapRef < typeof import ( 'vue' ) [ 'shallowReadonly' ] >
169+ readonly shallowRef : UnwrapRef < typeof import ( 'vue' ) [ 'shallowRef' ] >
170+ readonly storeToRefs : UnwrapRef < typeof import ( 'pinia' ) [ 'storeToRefs' ] >
171+ readonly toRaw : UnwrapRef < typeof import ( 'vue' ) [ 'toRaw' ] >
172+ readonly toRef : UnwrapRef < typeof import ( 'vue' ) [ 'toRef' ] >
173+ readonly toRefs : UnwrapRef < typeof import ( 'vue' ) [ 'toRefs' ] >
174+ readonly toValue : UnwrapRef < typeof import ( 'vue' ) [ 'toValue' ] >
175+ readonly triggerRef : UnwrapRef < typeof import ( 'vue' ) [ 'triggerRef' ] >
176+ readonly unref : UnwrapRef < typeof import ( 'vue' ) [ 'unref' ] >
177+ readonly useAttrs : UnwrapRef < typeof import ( 'vue' ) [ 'useAttrs' ] >
178+ readonly useCssModule : UnwrapRef < typeof import ( 'vue' ) [ 'useCssModule' ] >
179+ readonly useCssVars : UnwrapRef < typeof import ( 'vue' ) [ 'useCssVars' ] >
180+ readonly useGlobalApp : UnwrapRef < typeof import ( '@/composables/useGlobalApp' ) [ 'useGlobalApp' ] >
181+ readonly useId : UnwrapRef < typeof import ( 'vue' ) [ 'useId' ] >
182+ readonly useLink : UnwrapRef < typeof import ( 'vue-router' ) [ 'useLink' ] >
183+ readonly useModel : UnwrapRef < typeof import ( 'vue' ) [ 'useModel' ] >
184+ readonly useRoute : UnwrapRef < typeof import ( 'vue-router' ) [ 'useRoute' ] >
185+ readonly useRouter : UnwrapRef < typeof import ( 'vue-router' ) [ 'useRouter' ] >
186+ readonly useSlots : UnwrapRef < typeof import ( 'vue' ) [ 'useSlots' ] >
187+ readonly useTemplateRef : UnwrapRef < typeof import ( 'vue' ) [ 'useTemplateRef' ] >
188+ readonly watch : UnwrapRef < typeof import ( 'vue' ) [ 'watch' ] >
189+ readonly watchEffect : UnwrapRef < typeof import ( 'vue' ) [ 'watchEffect' ] >
190+ readonly watchPostEffect : UnwrapRef < typeof import ( 'vue' ) [ 'watchPostEffect' ] >
191+ readonly watchSyncEffect : UnwrapRef < typeof import ( 'vue' ) [ 'watchSyncEffect' ] >
192+ }
120193}
0 commit comments