Skip to content

Commit

Permalink
Add a note about the type parameters of the ChartData type (#9917)
Browse files Browse the repository at this point in the history
  • Loading branch information
etimberg committed Nov 28, 2021
1 parent f8992a6 commit 67aa6eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions types/index.esm.d.ts
Expand Up @@ -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>,
Expand Down

0 comments on commit 67aa6eb

Please sign in to comment.