diff --git a/types/recharts/index.d.ts b/types/recharts/index.d.ts index fcb11eb613..426e74d6ba 100644 --- a/types/recharts/index.d.ts +++ b/types/recharts/index.d.ts @@ -300,8 +300,9 @@ export interface CartesianGridProps extends Partial { export class CartesianGrid extends React.Component { } -// NOTE: the lib's implementation doesn't inherits the event props (it's kept in this definition due to the previous typing definition has it). -export type CellProps = Partial; +export interface CellProps extends Partial { + onClick?: RechartsFunction; +} export class Cell extends React.Component { } @@ -434,6 +435,7 @@ export interface PieProps extends EventAttributes, Partial