diff --git a/types/recharts/index.d.ts b/types/recharts/index.d.ts index 1d56836bab..4a32aca0d4 100644 --- a/types/recharts/index.d.ts +++ b/types/recharts/index.d.ts @@ -310,6 +310,7 @@ export interface PieProps extends Partial { minAngle?: number; paddingAngle?: number; nameKey?: string; + dataKey?: string; valueKey?: string; legendType?: LegendType; label?: boolean | any | React.ReactElement | RechartsFunction; @@ -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;