mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-06 08:24:05 +01:00
Add a note about the type parameters of the ChartData type (#9917)
This commit is contained in:
5
types/index.esm.d.ts
vendored
5
types/index.esm.d.ts
vendored
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user