@@ -17,15 +17,17 @@ import type {
1717export interface Props <
1818 TType extends ChartType = ChartType ,
1919 TData = DefaultDataPoint < TType > ,
20- TLabel = unknown ,
21- TOtherType extends TType = TType
20+ TLabel = unknown
2221> extends CanvasHTMLAttributes < HTMLCanvasElement > {
2322 type : TType ;
23+ /**
24+ * @todo Remove function variant.
25+ */
2426 data :
25- | ChartData < TOtherType , TData , TLabel >
26- | ( ( canvas : HTMLCanvasElement ) => ChartData < TOtherType , TData , TLabel > ) ;
27- options ?: ChartOptions < TOtherType > ;
28- plugins ?: Plugin < TOtherType > [ ] ;
27+ | ChartData < TType , TData , TLabel >
28+ | ( ( canvas : HTMLCanvasElement ) => ChartData < TType , TData , TLabel > ) ;
29+ options ?: ChartOptions < TType > ;
30+ plugins ?: Plugin < TType > [ ] ;
2931 redraw ?: boolean ;
3032 /**
3133 * @todo Replace with `children` prop.
@@ -66,10 +68,9 @@ export type TypedChartComponent<
6668 : <
6769 TType extends ChartType = ChartType ,
6870 TData = DefaultDataPoint < TType > ,
69- TLabel = unknown ,
70- TOtherType extends TType = TType
71+ TLabel = unknown
7172 > (
72- props : Props < TType , TData , TLabel , TOtherType > & {
73+ props : Props < TType , TData , TLabel > & {
7374 ref ?: ForwardedRef < ChartJSOrUndefined < TType , TData , TLabel > > ;
7475 }
7576 ) => JSX . Element ;
0 commit comments