From 764d271d28624107f2ca4ff889228f7de1d5022c Mon Sep 17 00:00:00 2001 From: Jan Karres Date: Tue, 5 Sep 2017 16:19:08 +0200 Subject: [PATCH] Recharts v0.22 add missing types --- 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 bc2f51231f..589f34c265 100644 --- a/types/recharts/index.d.ts +++ b/types/recharts/index.d.ts @@ -24,6 +24,7 @@ export interface Margin { export interface AreaProps extends Partial { type?: 'basis' | 'basisClosed' | 'basisOpen' | 'linear' | 'linearClosed' | 'natural' | 'monotoneX' | 'monotoneY' | 'monotone' | 'step' | 'stepBefore' | 'stepAfter' | RechartsFunction; + dataKey?: string | number; xAxisId?: string | number; yAxisId?: string | number; legendType?: LegendType; @@ -645,13 +646,13 @@ export interface TooltipProps { itemStyle?: any; wrapperStyle?: any; labelStyle?: any; - cursor?: boolean | any | React.ReactElement; + cursor?: boolean | any | React.ReactElement | React.StatelessComponent; viewBox: ViewBox; active?: boolean; coordinate?: Coordinate; payload?: TooltipPayload[]; label?: string | number; - content?: React.ReactElement | RechartsFunction; + content?: React.ReactElement | React.StatelessComponent | RechartsFunction; formatter?: RechartsFunction; labelFormatter?: RechartsFunction; itemSorter?: RechartsFunction;