diff --git a/types/recharts/index.d.ts b/types/recharts/index.d.ts index d6e4a084a7..342c1a07bb 100644 --- a/types/recharts/index.d.ts +++ b/types/recharts/index.d.ts @@ -6,6 +6,7 @@ // Zheyang Song // Rich Baird // Dan Torberg +// Peter Keuter // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 @@ -163,7 +164,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; hide?: boolean; layout?: LayoutType; baseLine?: number | any[]; @@ -207,7 +208,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