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

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

* refactor: format index.d.ts to comply with ESLint rules
This commit is contained in:
Artur Morys - Magiera 2024-08-17 01:57:26 +02:00 committed by GitHub
parent 74122c1b0f
commit b51b57aca4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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']>;