mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
[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 <konstantin.azizov@theagilehub.net> * [recharts] adds Dimitri Mitropoulos to authors
This commit is contained in:
committed by
Wesley Wigham
co-authored by
Konstantin Azizov
parent
eed3f51121
commit
37c2494d5d
Vendored
+5
-1
@@ -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 <https://github.com/rapmue>
|
||||
// Roy Xue <https://github.com/royxue>
|
||||
@@ -15,6 +15,7 @@
|
||||
// Dave Vedder <https://github.com/veddermatic>
|
||||
// Konstantin Azizov <https://github.com/g07cha>
|
||||
// Gonzalo Nicolas D'Elia <https://github.com/gndelia>
|
||||
// Dimitri Mitropoulos <https://github.com/dimitropoulos>
|
||||
// Eliot Ball <https://github.com/eliotball>
|
||||
// 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<string | number>;
|
||||
@@ -850,6 +853,7 @@ export interface TooltipPayload {
|
||||
export interface TooltipProps extends Animatable {
|
||||
content?: React.ReactElement | React.StatelessComponent<any> | ContentRenderer<TooltipProps>;
|
||||
viewBox?: ViewBox;
|
||||
allowEscapeViewBox?: AllowEscapeViewBox;
|
||||
active?: boolean;
|
||||
separator?: string;
|
||||
formatter?: TooltipFormatter;
|
||||
|
||||
Reference in New Issue
Block a user