chore: more to utils

This commit is contained in:
Matthias 2024-07-05 14:34:17 +02:00
parent fc306cf14d
commit 2bc363183e
5 changed files with 4 additions and 3 deletions

View File

@ -52,6 +52,7 @@ declare global {
const exportForTesting: typeof import('./utils/formatters/timeformat')['exportForTesting']
const extendRef: typeof import('@vueuse/core')['extendRef']
const findGridLayout: typeof import('./stores/layout')['findGridLayout']
const formatObjectForTable: typeof import('./utils/objectToTableItems')['formatObjectForTable']
const formatPercent: typeof import('./utils/formatters/numberformat')['formatPercent']
const formatPrice: typeof import('./utils/formatters/numberformat')['formatPrice']
const formatPriceCurrency: typeof import('./utils/formatters/numberformat')['formatPriceCurrency']
@ -406,6 +407,7 @@ declare module 'vue' {
readonly exportForTesting: UnwrapRef<typeof import('./utils/formatters/timeformat')['exportForTesting']>
readonly extendRef: UnwrapRef<typeof import('@vueuse/core')['extendRef']>
readonly findGridLayout: UnwrapRef<typeof import('./stores/layout')['findGridLayout']>
readonly formatObjectForTable: UnwrapRef<typeof import('./utils/objectToTableItems')['formatObjectForTable']>
readonly formatPercent: UnwrapRef<typeof import('./utils/formatters/numberformat')['formatPercent']>
readonly formatPrice: UnwrapRef<typeof import('./utils/formatters/numberformat')['formatPrice']>
readonly formatPriceCurrency: UnwrapRef<typeof import('./utils/formatters/numberformat')['formatPriceCurrency']>
@ -751,6 +753,7 @@ declare module '@vue/runtime-core' {
readonly exportForTesting: UnwrapRef<typeof import('./utils/formatters/timeformat')['exportForTesting']>
readonly extendRef: UnwrapRef<typeof import('@vueuse/core')['extendRef']>
readonly findGridLayout: UnwrapRef<typeof import('./stores/layout')['findGridLayout']>
readonly formatObjectForTable: UnwrapRef<typeof import('./utils/objectToTableItems')['formatObjectForTable']>
readonly formatPercent: UnwrapRef<typeof import('./utils/formatters/numberformat')['formatPercent']>
readonly formatPrice: UnwrapRef<typeof import('./utils/formatters/numberformat')['formatPrice']>
readonly formatPriceCurrency: UnwrapRef<typeof import('./utils/formatters/numberformat')['formatPriceCurrency']>

View File

@ -74,7 +74,6 @@
<script setup lang="ts">
import { StrategyBacktestResult } from '@/types';
import { formatObjectForTable } from '@/shared/objectToTableItems';
import { generateBacktestMetricRows, generateBacktestSettingRows } from '@/shared/backtestMetrics';
import { TableField } from 'bootstrap-vue-next';

View File

@ -29,7 +29,6 @@
<script setup lang="ts">
import { BacktestResultInMemory } from '@/types';
import { formatObjectForTable } from '@/shared/objectToTableItems';
import { generateBacktestMetricRows } from '@/shared/backtestMetrics';
import { TableField } from 'bootstrap-vue-next';

View File

@ -1,5 +1,5 @@
import { describe, it, expect } from 'vitest';
import { formatObjectForTable } from '@/shared/objectToTableItems';
import { formatObjectForTable } from '@/utils/objectToTableItems';
describe('objectArray.ts', () => {
it('converts object array', () => {