Skip to content

Commit 28a2936

Browse files
committed
fix(types): exclude DeepPartial<unknown[]> from ChartOptions interface
1 parent b9c0141 commit 28a2936

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/types/index.d.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3740,13 +3740,16 @@ export type ScaleChartOptions<TType extends ChartType = ChartType> = {
37403740
};
37413741
};
37423742

3743-
export type ChartOptions<TType extends ChartType = ChartType> = DeepPartial<
3744-
CoreChartOptions<TType> &
3745-
ElementChartOptions<TType> &
3746-
PluginChartOptions<TType> &
3747-
DatasetChartOptions<TType> &
3748-
ScaleChartOptions<TType> &
3749-
ChartTypeRegistry[TType]['chartOptions']
3743+
export type ChartOptions<TType extends ChartType = ChartType> = Exclude<
3744+
DeepPartial<
3745+
CoreChartOptions<TType> &
3746+
ElementChartOptions<TType> &
3747+
PluginChartOptions<TType> &
3748+
DatasetChartOptions<TType> &
3749+
ScaleChartOptions<TType> &
3750+
ChartTypeRegistry[TType]['chartOptions']
3751+
>,
3752+
DeepPartial<unknown[]>
37503753
>;
37513754

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

0 commit comments

Comments
 (0)