From 3d473f170a9234f54cfee03c7e4513f945ff773a Mon Sep 17 00:00:00 2001 From: Victor Widell Date: Wed, 1 Aug 2018 20:37:49 +0200 Subject: [PATCH] Fixed domain tuples. (#27754) The length of all domain tuples should be 2, not an arbitrary length. --- types/recharts/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/recharts/index.d.ts b/types/recharts/index.d.ts index a46cbd09b8..bb81ac066f 100644 --- a/types/recharts/index.d.ts +++ b/types/recharts/index.d.ts @@ -518,7 +518,7 @@ export interface PolarRadiusAxisProps extends EventAttributes, Partial | ContentRenderer; stroke?: string; tickFormatter: TickFormatterFunction; - domain?: PolarRadiusAxisDomain[]; + domain?: [PolarRadiusAxisDomain, PolarRadiusAxisDomain]; scale?: ScaleType | RechartsFunction; allowDataOverflow?: boolean; } @@ -882,7 +882,7 @@ export interface XAxisProps extends EventAttributes { unit?: string | number; // The unique id of x-axis xAxisId?: string | number; - domain?: AxisDomain[]; + domain?: [AxisDomain, AxisDomain]; // The key of data displayed in the axis dataKey?: DataKey; // The width of axis which is usually calculated internally @@ -933,7 +933,7 @@ export interface YAxisProps extends EventAttributes { unit?: string | number; // The unique id of y-axis yAxisId?: string | number; - domain?: AxisDomain[]; + domain?: [AxisDomain, AxisDomain]; // The key of data displayed in the axis dataKey?: DataKey; // Ticks can be any type when the axis is the type of category