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