From 37c2494d5dbe9619d2c47976ebdf55348b6a017f Mon Sep 17 00:00:00 2001 From: Dimitri Mitropoulos Date: Tue, 22 Oct 2019 16:38:33 -0400 Subject: [PATCH] [recharts] adds allowEscapeViewBox type to Tooltip (#39230) * adds allowEscapeViewBox type to Tooltip now that https://github.com/recharts/recharts/pull/1908 is merged * [recharts] increments minor version to 1.8.0 * Update types/recharts/index.d.ts oops. habit! heh. Co-Authored-By: Konstantin Azizov * [recharts] adds Dimitri Mitropoulos to authors --- types/recharts/index.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;