From: Evert Timberg Date: Sun, 28 Nov 2021 18:01:14 +0000 (-0500) Subject: Add a note about the type parameters of the ChartData type (#9917) X-Git-Tag: v3.6.1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67aa6eb985ff328536e266cac84babb998b52212;p=thirdparty%2FChart.js.git Add a note about the type parameters of the ChartData type (#9917) --- diff --git a/types/index.esm.d.ts b/types/index.esm.d.ts index df69eb02e..cf1570a31 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,