From: xr0master Date: Fri, 11 Sep 2020 11:32:11 +0000 (+0300) Subject: interfaces.d: fix a wrong place of Option infer (#7770) X-Git-Tag: v3.0.0-beta.2~1^2~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9b00ff3e1eed0ef0a4a47fad1b798f810fe5eb2e;p=thirdparty%2FChart.js.git interfaces.d: fix a wrong place of Option infer (#7770) Co-authored-by: Sergey Khomushin --- diff --git a/types/interfaces.d.ts b/types/interfaces.d.ts index b821e79c8..27239a6e7 100644 --- a/types/interfaces.d.ts +++ b/types/interfaces.d.ts @@ -153,10 +153,10 @@ export type IRadarControllerConfiguration = IChartConfig IRadarControllerChartOptions >; -export type ConfigurationOptions = O extends IChartConfiguration ? O : never; -export type ConfigurationData = O extends IChartConfiguration +export type ConfigurationOptions = O extends IChartConfiguration ? O : never; +export type ConfigurationData = O extends IChartConfiguration ? IChartData : never; -export type ConfigurationDataset = O extends IChartConfiguration +export type ConfigurationDataset = O extends IChartConfiguration ? DS : never;