Skip to content

Commit

Permalink
fix(types): exclude DeepPartial<unknown[]> from ChartOptions interface (
Browse files Browse the repository at this point in the history
#11867)

* fix(types): exclude DeepPartial<unknown[]> from ChartOptions interface

* refactor: format index.d.ts to comply with ESLint rules
  • Loading branch information
artus9033 committed Aug 16, 2024
1 parent 74122c1 commit b51b57a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3742,13 +3742,16 @@ export type ScaleChartOptions<TType extends ChartType = ChartType> = {
};
};

export type ChartOptions<TType extends ChartType = ChartType> = DeepPartial<
export type ChartOptions<TType extends ChartType = ChartType> = Exclude<
DeepPartial<
CoreChartOptions<TType> &
ElementChartOptions<TType> &
PluginChartOptions<TType> &
DatasetChartOptions<TType> &
ScaleChartOptions<TType> &
ChartTypeRegistry[TType]['chartOptions']
>,
DeepPartial<unknown[]>
>;

export type DefaultDataPoint<TType extends ChartType> = DistributiveArray<ChartTypeRegistry[TType]['defaultDataPoint']>;
Expand Down

0 comments on commit b51b57a

Please sign in to comment.