diff --git a/src/auto-imports.d.ts b/src/auto-imports.d.ts index 16373df0..22d4010e 100644 --- a/src/auto-imports.d.ts +++ b/src/auto-imports.d.ts @@ -35,6 +35,7 @@ declare global { const customRef: typeof import('vue')['customRef'] const debouncedRef: typeof import('@vueuse/core')['debouncedRef'] const debouncedWatch: typeof import('@vueuse/core')['debouncedWatch'] + const deepClone: typeof import('./utils/deepClone')['deepClone'] const defineAsyncComponent: typeof import('vue')['defineAsyncComponent'] const defineComponent: typeof import('vue')['defineComponent'] const defineStore: typeof import('pinia')['defineStore'] @@ -355,6 +356,7 @@ declare module 'vue' { readonly customRef: UnwrapRef readonly debouncedRef: UnwrapRef readonly debouncedWatch: UnwrapRef + readonly deepClone: UnwrapRef readonly defineAsyncComponent: UnwrapRef readonly defineComponent: UnwrapRef readonly defineStore: UnwrapRef @@ -667,6 +669,7 @@ declare module '@vue/runtime-core' { readonly customRef: UnwrapRef readonly debouncedRef: UnwrapRef readonly debouncedWatch: UnwrapRef + readonly deepClone: UnwrapRef readonly defineAsyncComponent: UnwrapRef readonly defineComponent: UnwrapRef readonly defineStore: UnwrapRef diff --git a/src/components/charts/PlotConfigurator.vue b/src/components/charts/PlotConfigurator.vue index 962f97e2..1fa8d6a0 100644 --- a/src/components/charts/PlotConfigurator.vue +++ b/src/components/charts/PlotConfigurator.vue @@ -154,7 +154,6 @@ import { showAlert } from '@/shared/alerts'; import { IndicatorConfig, PlotConfig } from '@/types'; -import { deepClone } from '@/shared/deepClone'; import { useBotStore } from '@/stores/ftbotwrapper'; import { usePlotConfigStore } from '@/stores/plotConfig'; diff --git a/src/stores/plotConfig.ts b/src/stores/plotConfig.ts index 2bb6690c..17ec7757 100644 --- a/src/stores/plotConfig.ts +++ b/src/stores/plotConfig.ts @@ -1,4 +1,3 @@ -import { deepClone } from '@/shared/deepClone'; import { EMPTY_PLOTCONFIG, PlotConfig, PlotConfigStorage } from '@/types'; const FT_PLOT_CONFIG_KEY = 'ftPlotConfig'; diff --git a/src/shared/deepClone.ts b/src/utils/deepClone.ts similarity index 100% rename from src/shared/deepClone.ts rename to src/utils/deepClone.ts diff --git a/vite.config.ts b/vite.config.ts index aeabebc6..9c157962 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -37,7 +37,7 @@ export default defineConfig({ AutoImport({ imports: ['vue', 'vue-router', '@vueuse/core', 'pinia'], dts: 'src/auto-imports.d.ts', - dirs: ['src/composables', 'src/stores'], + dirs: ['src/composables', 'src/stores', 'src/utils'], vueTemplate: true, }), ],