mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
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:
parent
74122c1b0f
commit
b51b57aca4
5
src/types/index.d.ts
vendored
5
src/types/index.d.ts
vendored
@ -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']>;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user