Skip to content

Commit 29d6334

Browse files
committed
refactor: update unplugin-auto-import's generated files
1 parent 20f3c92 commit 29d6334

File tree

3 files changed

+34
-77
lines changed

3 files changed

+34
-77
lines changed

template/javascript/essentials/_eslintrc-auto-import.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@
33
"Component": true,
44
"ComponentPublicInstance": true,
55
"ComputedRef": true,
6+
"DirectiveBinding": true,
67
"EffectScope": true,
78
"ExtractDefaultPropTypes": true,
89
"ExtractPropTypes": true,
910
"ExtractPublicPropTypes": true,
1011
"InjectionKey": true,
12+
"MaybeRef": true,
13+
"MaybeRefOrGetter": true,
1114
"PropType": true,
1215
"Ref": true,
16+
"Slot": true,
17+
"Slots": true,
1318
"VNode": true,
1419
"WritableComputedRef": true,
1520
"computed": true,
@@ -30,8 +35,6 @@
3035
"nextTick": true,
3136
"onActivated": true,
3237
"onBeforeMount": true,
33-
"onBeforeRouteLeave": true,
34-
"onBeforeRouteUpdate": true,
3538
"onBeforeUnmount": true,
3639
"onBeforeUpdate": true,
3740
"onDeactivated": true,
@@ -43,6 +46,7 @@
4346
"onServerPrefetch": true,
4447
"onUnmounted": true,
4548
"onUpdated": true,
49+
"onWatcherCleanup": true,
4650
"provide": true,
4751
"reactive": true,
4852
"readonly": true,
@@ -60,10 +64,12 @@
6064
"useAttrs": true,
6165
"useCssModule": true,
6266
"useCssVars": true,
63-
"useLink": true,
67+
"useId": true,
68+
"useModel": true,
6469
"useRoute": true,
6570
"useRouter": true,
6671
"useSlots": true,
72+
"useTemplateRef": true,
6773
"watch": true,
6874
"watchEffect": true,
6975
"watchPostEffect": true,

template/typescript/essentials/_eslintrc-auto-import.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@
33
"Component": true,
44
"ComponentPublicInstance": true,
55
"ComputedRef": true,
6+
"DirectiveBinding": true,
67
"EffectScope": true,
78
"ExtractDefaultPropTypes": true,
89
"ExtractPropTypes": true,
910
"ExtractPublicPropTypes": true,
1011
"InjectionKey": true,
12+
"MaybeRef": true,
13+
"MaybeRefOrGetter": true,
1114
"PropType": true,
1215
"Ref": true,
16+
"Slot": true,
17+
"Slots": true,
1318
"VNode": true,
1419
"WritableComputedRef": true,
1520
"computed": true,
@@ -41,6 +46,7 @@
4146
"onServerPrefetch": true,
4247
"onUnmounted": true,
4348
"onUpdated": true,
49+
"onWatcherCleanup": true,
4450
"provide": true,
4551
"reactive": true,
4652
"readonly": true,
@@ -58,9 +64,12 @@
5864
"useAttrs": true,
5965
"useCssModule": true,
6066
"useCssVars": true,
67+
"useId": true,
68+
"useModel": true,
6169
"useRoute": true,
6270
"useRouter": true,
6371
"useSlots": true,
72+
"useTemplateRef": true,
6473
"watch": true,
6574
"watchEffect": true,
6675
"watchPostEffect": true,

template/typescript/essentials/src/auto-imports.d.ts

Lines changed: 16 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// @ts-nocheck
44
// noinspection JSUnusedGlobalSymbols
55
// Generated by unplugin-auto-import
6+
// biome-ignore lint: disable
67
export {}
78
declare global {
89
const EffectScope: typeof import('vue')['EffectScope']
@@ -24,8 +25,6 @@ declare global {
2425
const nextTick: typeof import('vue')['nextTick']
2526
const onActivated: typeof import('vue')['onActivated']
2627
const onBeforeMount: typeof import('vue')['onBeforeMount']
27-
const onBeforeRouteLeave: typeof import('vue-router')['onBeforeRouteLeave']
28-
const onBeforeRouteUpdate: typeof import('vue-router')['onBeforeRouteUpdate']
2928
const onBeforeUnmount: typeof import('vue')['onBeforeUnmount']
3029
const onBeforeUpdate: typeof import('vue')['onBeforeUpdate']
3130
const onDeactivated: typeof import('vue')['onDeactivated']
@@ -37,6 +36,7 @@ declare global {
3736
const onServerPrefetch: typeof import('vue')['onServerPrefetch']
3837
const onUnmounted: typeof import('vue')['onUnmounted']
3938
const onUpdated: typeof import('vue')['onUpdated']
39+
const onWatcherCleanup: typeof import('vue')['onWatcherCleanup']
4040
const provide: typeof import('vue')['provide']
4141
const reactive: typeof import('vue')['reactive']
4242
const readonly: typeof import('vue')['readonly']
@@ -54,10 +54,12 @@ declare global {
5454
const useAttrs: typeof import('vue')['useAttrs']
5555
const useCssModule: typeof import('vue')['useCssModule']
5656
const useCssVars: typeof import('vue')['useCssVars']
57-
const useLink: typeof import('vue-router')['useLink']
58-
const useRoute: typeof import('vue-router')['useRoute']
59-
const useRouter: typeof import('vue-router')['useRouter']
57+
const useId: typeof import('vue')['useId']
58+
const useModel: typeof import('vue')['useModel']
59+
const useRoute: typeof import('vue-router/auto')['useRoute']
60+
const useRouter: typeof import('vue-router/auto')['useRouter']
6061
const useSlots: typeof import('vue')['useSlots']
62+
const useTemplateRef: typeof import('vue')['useTemplateRef']
6163
const watch: typeof import('vue')['watch']
6264
const watchEffect: typeof import('vue')['watchEffect']
6365
const watchPostEffect: typeof import('vue')['watchPostEffect']
@@ -66,9 +68,10 @@ declare global {
6668
// for type re-export
6769
declare global {
6870
// @ts-ignore
69-
export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
71+
export type { Component, Slot, Slots, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
7072
import('vue')
7173
}
74+
7275
// for vue template auto import
7376
import { UnwrapRef } from 'vue'
7477
declare module 'vue' {
@@ -93,8 +96,6 @@ declare module 'vue' {
9396
readonly nextTick: UnwrapRef<typeof import('vue')['nextTick']>
9497
readonly onActivated: UnwrapRef<typeof import('vue')['onActivated']>
9598
readonly onBeforeMount: UnwrapRef<typeof import('vue')['onBeforeMount']>
96-
readonly onBeforeRouteLeave: UnwrapRef<typeof import('vue-router')['onBeforeRouteLeave']>
97-
readonly onBeforeRouteUpdate: UnwrapRef<typeof import('vue-router')['onBeforeRouteUpdate']>
9899
readonly onBeforeUnmount: UnwrapRef<typeof import('vue')['onBeforeUnmount']>
99100
readonly onBeforeUpdate: UnwrapRef<typeof import('vue')['onBeforeUpdate']>
100101
readonly onDeactivated: UnwrapRef<typeof import('vue')['onDeactivated']>
@@ -106,6 +107,7 @@ declare module 'vue' {
106107
readonly onServerPrefetch: UnwrapRef<typeof import('vue')['onServerPrefetch']>
107108
readonly onUnmounted: UnwrapRef<typeof import('vue')['onUnmounted']>
108109
readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>
110+
readonly onWatcherCleanup: UnwrapRef<typeof import('vue')['onWatcherCleanup']>
109111
readonly provide: UnwrapRef<typeof import('vue')['provide']>
110112
readonly reactive: UnwrapRef<typeof import('vue')['reactive']>
111113
readonly readonly: UnwrapRef<typeof import('vue')['readonly']>
@@ -123,75 +125,15 @@ declare module 'vue' {
123125
readonly useAttrs: UnwrapRef<typeof import('vue')['useAttrs']>
124126
readonly useCssModule: UnwrapRef<typeof import('vue')['useCssModule']>
125127
readonly useCssVars: UnwrapRef<typeof import('vue')['useCssVars']>
126-
readonly useLink: UnwrapRef<typeof import('vue-router')['useLink']>
127-
readonly useRoute: UnwrapRef<typeof import('vue-router')['useRoute']>
128-
readonly useRouter: UnwrapRef<typeof import('vue-router')['useRouter']>
128+
readonly useId: UnwrapRef<typeof import('vue')['useId']>
129+
readonly useModel: UnwrapRef<typeof import('vue')['useModel']>
130+
readonly useRoute: UnwrapRef<typeof import('vue-router/auto')['useRoute']>
131+
readonly useRouter: UnwrapRef<typeof import('vue-router/auto')['useRouter']>
129132
readonly useSlots: UnwrapRef<typeof import('vue')['useSlots']>
133+
readonly useTemplateRef: UnwrapRef<typeof import('vue')['useTemplateRef']>
130134
readonly watch: UnwrapRef<typeof import('vue')['watch']>
131135
readonly watchEffect: UnwrapRef<typeof import('vue')['watchEffect']>
132136
readonly watchPostEffect: UnwrapRef<typeof import('vue')['watchPostEffect']>
133137
readonly watchSyncEffect: UnwrapRef<typeof import('vue')['watchSyncEffect']>
134138
}
135-
}
136-
declare module '@vue/runtime-core' {
137-
interface GlobalComponents {}
138-
interface ComponentCustomProperties {
139-
readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>
140-
readonly computed: UnwrapRef<typeof import('vue')['computed']>
141-
readonly createApp: UnwrapRef<typeof import('vue')['createApp']>
142-
readonly customRef: UnwrapRef<typeof import('vue')['customRef']>
143-
readonly defineAsyncComponent: UnwrapRef<typeof import('vue')['defineAsyncComponent']>
144-
readonly defineComponent: UnwrapRef<typeof import('vue')['defineComponent']>
145-
readonly effectScope: UnwrapRef<typeof import('vue')['effectScope']>
146-
readonly getCurrentInstance: UnwrapRef<typeof import('vue')['getCurrentInstance']>
147-
readonly getCurrentScope: UnwrapRef<typeof import('vue')['getCurrentScope']>
148-
readonly h: UnwrapRef<typeof import('vue')['h']>
149-
readonly inject: UnwrapRef<typeof import('vue')['inject']>
150-
readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']>
151-
readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>
152-
readonly isReadonly: UnwrapRef<typeof import('vue')['isReadonly']>
153-
readonly isRef: UnwrapRef<typeof import('vue')['isRef']>
154-
readonly markRaw: UnwrapRef<typeof import('vue')['markRaw']>
155-
readonly nextTick: UnwrapRef<typeof import('vue')['nextTick']>
156-
readonly onActivated: UnwrapRef<typeof import('vue')['onActivated']>
157-
readonly onBeforeMount: UnwrapRef<typeof import('vue')['onBeforeMount']>
158-
readonly onBeforeRouteLeave: UnwrapRef<typeof import('vue-router')['onBeforeRouteLeave']>
159-
readonly onBeforeRouteUpdate: UnwrapRef<typeof import('vue-router')['onBeforeRouteUpdate']>
160-
readonly onBeforeUnmount: UnwrapRef<typeof import('vue')['onBeforeUnmount']>
161-
readonly onBeforeUpdate: UnwrapRef<typeof import('vue')['onBeforeUpdate']>
162-
readonly onDeactivated: UnwrapRef<typeof import('vue')['onDeactivated']>
163-
readonly onErrorCaptured: UnwrapRef<typeof import('vue')['onErrorCaptured']>
164-
readonly onMounted: UnwrapRef<typeof import('vue')['onMounted']>
165-
readonly onRenderTracked: UnwrapRef<typeof import('vue')['onRenderTracked']>
166-
readonly onRenderTriggered: UnwrapRef<typeof import('vue')['onRenderTriggered']>
167-
readonly onScopeDispose: UnwrapRef<typeof import('vue')['onScopeDispose']>
168-
readonly onServerPrefetch: UnwrapRef<typeof import('vue')['onServerPrefetch']>
169-
readonly onUnmounted: UnwrapRef<typeof import('vue')['onUnmounted']>
170-
readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>
171-
readonly provide: UnwrapRef<typeof import('vue')['provide']>
172-
readonly reactive: UnwrapRef<typeof import('vue')['reactive']>
173-
readonly readonly: UnwrapRef<typeof import('vue')['readonly']>
174-
readonly ref: UnwrapRef<typeof import('vue')['ref']>
175-
readonly resolveComponent: UnwrapRef<typeof import('vue')['resolveComponent']>
176-
readonly shallowReactive: UnwrapRef<typeof import('vue')['shallowReactive']>
177-
readonly shallowReadonly: UnwrapRef<typeof import('vue')['shallowReadonly']>
178-
readonly shallowRef: UnwrapRef<typeof import('vue')['shallowRef']>
179-
readonly toRaw: UnwrapRef<typeof import('vue')['toRaw']>
180-
readonly toRef: UnwrapRef<typeof import('vue')['toRef']>
181-
readonly toRefs: UnwrapRef<typeof import('vue')['toRefs']>
182-
readonly toValue: UnwrapRef<typeof import('vue')['toValue']>
183-
readonly triggerRef: UnwrapRef<typeof import('vue')['triggerRef']>
184-
readonly unref: UnwrapRef<typeof import('vue')['unref']>
185-
readonly useAttrs: UnwrapRef<typeof import('vue')['useAttrs']>
186-
readonly useCssModule: UnwrapRef<typeof import('vue')['useCssModule']>
187-
readonly useCssVars: UnwrapRef<typeof import('vue')['useCssVars']>
188-
readonly useLink: UnwrapRef<typeof import('vue-router')['useLink']>
189-
readonly useRoute: UnwrapRef<typeof import('vue-router')['useRoute']>
190-
readonly useRouter: UnwrapRef<typeof import('vue-router')['useRouter']>
191-
readonly useSlots: UnwrapRef<typeof import('vue')['useSlots']>
192-
readonly watch: UnwrapRef<typeof import('vue')['watch']>
193-
readonly watchEffect: UnwrapRef<typeof import('vue')['watchEffect']>
194-
readonly watchPostEffect: UnwrapRef<typeof import('vue')['watchPostEffect']>
195-
readonly watchSyncEffect: UnwrapRef<typeof import('vue')['watchSyncEffect']>
196-
}
197-
}
139+
}

0 commit comments

Comments
 (0)