From 168344d812e3defd42ca86f33c2d158a1a45b90b Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Mon, 15 Jul 2024 09:48:04 -0700 Subject: [PATCH] chore: fixes broken error with macros (#3116) --- assets/auto-imports.d.ts | 14 -------------- vite.config.ts | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/assets/auto-imports.d.ts b/assets/auto-imports.d.ts index 96ecf83f..72f3b716 100644 --- a/assets/auto-imports.d.ts +++ b/assets/auto-imports.d.ts @@ -370,13 +370,6 @@ import { UnwrapRef } from 'vue' declare module 'vue' { interface GlobalComponents {} interface ComponentCustomProperties { - readonly $$: UnwrapRef - readonly $: UnwrapRef - readonly $computed: UnwrapRef - readonly $customRef: UnwrapRef - readonly $ref: UnwrapRef - readonly $shallowRef: UnwrapRef - readonly $toRef: UnwrapRef readonly DEFAULT_SETTINGS: UnwrapRef readonly EffectScope: UnwrapRef readonly acceptHMRUpdate: UnwrapRef @@ -727,13 +720,6 @@ declare module 'vue' { declare module '@vue/runtime-core' { interface GlobalComponents {} interface ComponentCustomProperties { - readonly $$: UnwrapRef - readonly $: UnwrapRef - readonly $computed: UnwrapRef - readonly $customRef: UnwrapRef - readonly $ref: UnwrapRef - readonly $shallowRef: UnwrapRef - readonly $toRef: UnwrapRef readonly DEFAULT_SETTINGS: UnwrapRef readonly EffectScope: UnwrapRef readonly acceptHMRUpdate: UnwrapRef diff --git a/vite.config.ts b/vite.config.ts index c3d48f7e..50d3e4b0 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -58,7 +58,7 @@ export default defineConfig(() => ({ dts: "assets/components.d.ts", }), AutoImport({ - imports: ["vue", VueRouterAutoImports, "vue-i18n", "vue/macros", "pinia", "@vueuse/head", "@vueuse/core"], + imports: ["vue", VueRouterAutoImports, "vue-i18n", "pinia", "@vueuse/head", "@vueuse/core"], dts: "assets/auto-imports.d.ts", dirs: ["assets/composable", "assets/stores", "assets/utils"], vueTemplate: true,