chore: autoimport deepClone

This commit is contained in:
Matthias 2024-07-05 14:11:00 +02:00
parent 924179401e
commit 8f73ae1071
5 changed files with 4 additions and 3 deletions

View File

@ -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<typeof import('vue')['customRef']>
readonly debouncedRef: UnwrapRef<typeof import('@vueuse/core')['debouncedRef']>
readonly debouncedWatch: UnwrapRef<typeof import('@vueuse/core')['debouncedWatch']>
readonly deepClone: UnwrapRef<typeof import('./utils/deepClone')['deepClone']>
readonly defineAsyncComponent: UnwrapRef<typeof import('vue')['defineAsyncComponent']>
readonly defineComponent: UnwrapRef<typeof import('vue')['defineComponent']>
readonly defineStore: UnwrapRef<typeof import('pinia')['defineStore']>
@ -667,6 +669,7 @@ declare module '@vue/runtime-core' {
readonly customRef: UnwrapRef<typeof import('vue')['customRef']>
readonly debouncedRef: UnwrapRef<typeof import('@vueuse/core')['debouncedRef']>
readonly debouncedWatch: UnwrapRef<typeof import('@vueuse/core')['debouncedWatch']>
readonly deepClone: UnwrapRef<typeof import('./utils/deepClone')['deepClone']>
readonly defineAsyncComponent: UnwrapRef<typeof import('vue')['defineAsyncComponent']>
readonly defineComponent: UnwrapRef<typeof import('vue')['defineComponent']>
readonly defineStore: UnwrapRef<typeof import('pinia')['defineStore']>

View File

@ -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';

View File

@ -1,4 +1,3 @@
import { deepClone } from '@/shared/deepClone';
import { EMPTY_PLOTCONFIG, PlotConfig, PlotConfigStorage } from '@/types';
const FT_PLOT_CONFIG_KEY = 'ftPlotConfig';

View File

@ -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,
}),
],