From b51b57aca4182e8afbfe988a2bd8eb3abf2c895e Mon Sep 17 00:00:00 2001 From: Artur Morys - Magiera Date: Sat, 17 Aug 2024 01:57:26 +0200 Subject: [PATCH] fix(types): exclude DeepPartial from ChartOptions interface (#11867) * fix(types): exclude DeepPartial from ChartOptions interface * refactor: format index.d.ts to comply with ESLint rules --- src/types/index.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/types/index.d.ts b/src/types/index.d.ts index 65dd075e014..fcdd44fe06b 100644 --- a/src/types/index.d.ts +++ b/src/types/index.d.ts @@ -3742,13 +3742,16 @@ export type ScaleChartOptions = { }; }; -export type ChartOptions = DeepPartial< +export type ChartOptions = Exclude< +DeepPartial< CoreChartOptions & ElementChartOptions & PluginChartOptions & DatasetChartOptions & ScaleChartOptions & ChartTypeRegistry[TType]['chartOptions'] +>, +DeepPartial >; export type DefaultDataPoint = DistributiveArray;