From aebc0a180a7f34da6a82bfa544b46d42adacbabd Mon Sep 17 00:00:00 2001 From: Levi Thornton Date: Thu, 15 Mar 2018 17:06:32 -0700 Subject: [PATCH] Updates dataKey type to allow functions in Lines and Tooltips --- types/recharts/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/recharts/index.d.ts b/types/recharts/index.d.ts index 86673e2aaa..d1de1c2c46 100644 --- a/types/recharts/index.d.ts +++ b/types/recharts/index.d.ts @@ -401,7 +401,7 @@ export interface LineProps extends EventAttributes, Partial | LabelProps['content']; points?: Point[]; } @@ -782,7 +782,7 @@ export interface TooltipPayload { unit?: string; color?: string; fill?: string; - dataKey?: string; + dataKey?: DataKey; formatter?: TooltipFormatter; }