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; }