diff --git a/types/recharts/index.d.ts b/types/recharts/index.d.ts index 0758f39998..0eed7d02db 100644 --- a/types/recharts/index.d.ts +++ b/types/recharts/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Recharts 1.7 +// Type definitions for Recharts 1.8 // Project: http://recharts.org/, https://github.com/recharts/recharts // Definitions by: Raphael Mueller // Roy Xue @@ -15,6 +15,7 @@ // Dave Vedder // Konstantin Azizov // Gonzalo Nicolas D'Elia +// Dimitri Mitropoulos // Eliot Ball // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -836,6 +837,8 @@ export interface Coordinate { y: number; } +export type AllowEscapeViewBox = { x: boolean } | { y: boolean } | { x: boolean, y: boolean }; + export interface TooltipPayload { name: string; value: string | number | Array; @@ -850,6 +853,7 @@ export interface TooltipPayload { export interface TooltipProps extends Animatable { content?: React.ReactElement | React.StatelessComponent | ContentRenderer; viewBox?: ViewBox; + allowEscapeViewBox?: AllowEscapeViewBox; active?: boolean; separator?: string; formatter?: TooltipFormatter;