Skip to content

Commit e70eaac

Browse files
refactor: types
1 parent fdf8719 commit e70eaac

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

app/composables/useCharts.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { MaybeRefOrGetter } from 'vue'
22
import { toValue } from 'vue'
33
import type {
44
DailyDataPoint,
5+
EvolutionOptionsBase,
56
MonthlyDataPoint,
67
WeeklyDataPoint,
78
YearlyDataPoint,
@@ -12,11 +13,6 @@ export type PackumentLikeForTime = {
1213
time?: Record<string, string>
1314
}
1415

15-
type EvolutionOptionsBase = {
16-
startDate?: string
17-
endDate?: string
18-
}
19-
2016
export type EvolutionOptionsDay = EvolutionOptionsBase & {
2117
granularity: 'day'
2218
}

app/types/chart.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,8 @@ export type EvolutionData =
2222
| WeeklyDataPoint[]
2323
| MonthlyDataPoint[]
2424
| YearlyDataPoint[]
25+
26+
export type EvolutionOptionsBase = {
27+
startDate?: string
28+
endDate?: string
29+
}

0 commit comments

Comments
 (0)