From 67aa6eb985ff328536e266cac84babb998b52212 Mon Sep 17 00:00:00 2001 From: Evert Timberg Date: Sun, 28 Nov 2021 13:01:14 -0500 Subject: [PATCH] Add a note about the type parameters of the ChartData type (#9917) --- types/index.esm.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types/index.esm.d.ts b/types/index.esm.d.ts index df69eb02eea..cf1570a3105 100644 --- a/types/index.esm.d.ts +++ b/types/index.esm.d.ts @@ -3512,6 +3512,11 @@ export type ChartDataset< { [key in ChartType]: { type: key } & ChartTypeRegistry[key]['datasetOptions'] }[TType] > & ChartDatasetProperties; +/** + * TData represents the data point type. If unspecified, a default is provided + * based on the chart type. + * TLabel represents the label type + */ export interface ChartData< TType extends ChartType = ChartType, TData = DefaultDataPoint,