Skip to content

Commit 27ef65e

Browse files
committed
[FIX] calendar chart: fix typing
The type `CalendarChartGranularity` would accept granularities that are only valid for pivots and not for calendar charts. Task: 5357420
1 parent b3c5ae7 commit 27ef65e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/o-spreadsheet-engine/src/types/chart/calendar_chart.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ChartColorScale, CommonChartDefinition } from ".";
33
import { Color } from "../misc";
44
import { Granularity } from "../pivot";
55

6-
export const CALENDAR_CHART_GRANULARITIES: Granularity[] = [
6+
export const CALENDAR_CHART_GRANULARITIES = [
77
"year",
88
"quarter_number",
99
"month_number",
@@ -13,7 +13,7 @@ export const CALENDAR_CHART_GRANULARITIES: Granularity[] = [
1313
"hour_number",
1414
"minute_number",
1515
"second_number",
16-
];
16+
] satisfies Granularity[];
1717

1818
export type CalendarChartGranularity = (typeof CALENDAR_CHART_GRANULARITIES)[number];
1919

0 commit comments

Comments
 (0)