@@ -73,21 +73,21 @@ export type ChartJSOrUndefined<
7373 TLabel = unknown
7474> = Chart < TType , TData , TLabel > | undefined ;
7575
76- export type TypedChartComponent <
77- TDefaultType extends ChartType = ChartType ,
78- TOmitType = false
79- > = TOmitType extends true
80- ? < TData = DefaultDataPoint < TDefaultType > , TLabel = unknown > (
81- props : Omit < ChartProps < TDefaultType , TData , TLabel > , 'type' > & {
82- ref ?: ForwardedRef < ChartJSOrUndefined < TDefaultType , TData , TLabel > > ;
83- }
84- ) => JSX . Element
85- : <
86- TType extends ChartType = ChartType ,
87- TData = DefaultDataPoint < TType > ,
88- TLabel = unknown
89- > (
90- props : ChartProps < TType , TData , TLabel > & {
91- ref ?: ForwardedRef < ChartJSOrUndefined < TType , TData , TLabel > > ;
92- }
93- ) => JSX . Element ;
76+ export type BaseChartComponent = <
77+ TType extends ChartType = ChartType ,
78+ TData = DefaultDataPoint < TType > ,
79+ TLabel = unknown
80+ > (
81+ props : ChartProps < TType , TData , TLabel > & {
82+ ref ?: ForwardedRef < ChartJSOrUndefined < TType , TData , TLabel > > ;
83+ }
84+ ) => JSX . Element ;
85+
86+ export type TypedChartComponent < TDefaultType extends ChartType > = <
87+ TData = DefaultDataPoint < TDefaultType > ,
88+ TLabel = unknown
89+ > (
90+ props : Omit < ChartProps < TDefaultType , TData , TLabel > , 'type' > & {
91+ ref ?: ForwardedRef < ChartJSOrUndefined < TDefaultType , TData , TLabel > > ;
92+ }
93+ ) => JSX . Element ;
0 commit comments