Skip to content

Commit

Permalink
refactor(chartTypes): Resolved lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjeevLakhwani committed May 30, 2024
1 parent 75e3576 commit abd5c40
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/types/chartTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<T> = (value: T, index: number, array: T[]) => boolean;
Expand Down Expand Up @@ -91,4 +91,3 @@ export interface BarChartProps extends Omit<BaseBarChartProps, 'chartFill' | 'ot
export interface HistogramProps extends Omit<BaseBarChartProps, 'chartFill' | 'otherFill'> {
colorTheme?: keyof ChartTheme['bar'];
}

0 comments on commit abd5c40

Please sign in to comment.