From abd5c405ef0c60f7bf9fb9d6f5d7d22e1e8dfb0a Mon Sep 17 00:00:00 2001 From: Sanjeev Lakhwani Date: Thu, 30 May 2024 12:29:14 -0400 Subject: [PATCH] refactor(chartTypes): Resolved lint issues --- src/types/chartTypes.ts | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/types/chartTypes.ts b/src/types/chartTypes.ts index a233b52..17fbf82 100644 --- a/src/types/chartTypes.ts +++ b/src/types/chartTypes.ts @@ -22,14 +22,14 @@ export type HexColor = `#${string}`; export type ChartThemeContext = { fill: HexColor[]; other: HexColor }; export type ChartTypeContext = { - [key in string]: ChartThemeContext; - } & { - default: ChartThemeContext; - }; + [key in string]: ChartThemeContext; +} & { + default: ChartThemeContext; +}; export type ChartTheme = { - pie: ChartTypeContext, - bar: ChartTypeContext, - histogram: ChartTypeContext + pie: ChartTypeContext; + bar: ChartTypeContext; + histogram: ChartTypeContext; }; export type FilterCallback = (value: T, index: number, array: T[]) => boolean; @@ -91,4 +91,3 @@ export interface BarChartProps extends Omit { colorTheme?: keyof ChartTheme['bar']; } -