Skip to content

Commit b51b57a

Browse files
authored
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
1 parent 74122c1 commit b51b57a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/types/index.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3742,13 +3742,16 @@ export type ScaleChartOptions<TType extends ChartType = ChartType> = {
37423742
};
37433743
};
37443744

3745-
export type ChartOptions<TType extends ChartType = ChartType> = DeepPartial<
3745+
export type ChartOptions<TType extends ChartType = ChartType> = Exclude<
3746+
DeepPartial<
37463747
CoreChartOptions<TType> &
37473748
ElementChartOptions<TType> &
37483749
PluginChartOptions<TType> &
37493750
DatasetChartOptions<TType> &
37503751
ScaleChartOptions<TType> &
37513752
ChartTypeRegistry[TType]['chartOptions']
3753+
>,
3754+
DeepPartial<unknown[]>
37523755
>;
37533756

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

0 commit comments

Comments
 (0)