From a9feb23f007974a16776d722126e3fc2ecb53f86 Mon Sep 17 00:00:00 2001 From: Peter Keuter Date: Wed, 16 Jan 2019 14:49:45 +0100 Subject: [PATCH 1/3] Add midangle --- types/recharts/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/recharts/index.d.ts b/types/recharts/index.d.ts index c7f420edf6..26e6ce3055 100644 --- a/types/recharts/index.d.ts +++ b/types/recharts/index.d.ts @@ -432,6 +432,7 @@ export interface PieProps extends EventAttributes, Partial Date: Thu, 17 Jan 2019 16:50:16 +0100 Subject: [PATCH 2/3] Add textanchor --- types/recharts/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/recharts/index.d.ts b/types/recharts/index.d.ts index 26e6ce3055..9792a5d3db 100644 --- a/types/recharts/index.d.ts +++ b/types/recharts/index.d.ts @@ -927,6 +927,7 @@ export interface XAxisProps extends EventAttributes { // The margin between tick line and the label tickMargin?: number; interval?: AxisInterval; + textAnchor?: string; reversed?: boolean; // see label section at http://recharts.org/#/en-US/api/XAxis label?: string | number | Label | LabelProps; From 9db7d0f1ab172509ce8ad13842ce73f958828213 Mon Sep 17 00:00:00 2001 From: Peter Keuter Date: Thu, 17 Jan 2019 16:56:57 +0100 Subject: [PATCH 3/3] add onclick --- types/recharts/index.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/types/recharts/index.d.ts b/types/recharts/index.d.ts index 9792a5d3db..9cf69f97e3 100644 --- a/types/recharts/index.d.ts +++ b/types/recharts/index.d.ts @@ -298,8 +298,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 { }