]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Add a note about the type parameters of the ChartData type (#9917)
authorEvert Timberg <evert.timberg+github@gmail.com>
Sun, 28 Nov 2021 18:01:14 +0000 (13:01 -0500)
committerGitHub <noreply@github.com>
Sun, 28 Nov 2021 18:01:14 +0000 (13:01 -0500)
types/index.esm.d.ts

index df69eb02eea884d063761fc60119268ef263c424..cf1570a31051ea5e5f5a3b33e629fb1b5d866d4e 100644 (file)
@@ -3512,6 +3512,11 @@ export type ChartDataset<
 { [key in ChartType]: { type: key } & ChartTypeRegistry[key]['datasetOptions'] }[TType]
 > & ChartDatasetProperties<TType, TData>;
 
+/**
+ * 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<TType>,