From 804f2e4a6ffae02cffffa104d7d4ce5048d8fb5d Mon Sep 17 00:00:00 2001 From: Peter Keuter Date: Tue, 29 May 2018 11:55:33 +0200 Subject: [PATCH 1/3] Add label render function --- types/recharts/index.d.ts | 10 +++++----- types/recharts/recharts-tests.tsx | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/types/recharts/index.d.ts b/types/recharts/index.d.ts index ecdcd1f420..1bbb1b158e 100644 --- a/types/recharts/index.d.ts +++ b/types/recharts/index.d.ts @@ -163,7 +163,7 @@ export interface AreaProps extends EventAttributes, Partial | ContentRenderer; dot?: boolean | object | React.ReactElement | ContentRenderer; - label?: boolean | object | React.ReactElement | LabelProps['content']; + label?: boolean | object | ContentRenderer | React.ReactElement | LabelProps['content']; hide?: boolean; layout?: LayoutType; baseLine?: number | any[]; @@ -207,7 +207,7 @@ export interface BarProps extends EventAttributes, Partial | ContentRenderer; data?: BarData[]; // see label section at http://recharts.org/#/en-US/api/Bar - label?: boolean | Label | React.SFC | React.ReactElement | ContentRenderer