mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Fixed domain tuples. (#27754)
The length of all domain tuples should be 2, not an arbitrary length.
This commit is contained in:
committed by
Sheetal Nandi
parent
ca12f22b4d
commit
3d473f170a
Vendored
+3
-3
@@ -518,7 +518,7 @@ export interface PolarRadiusAxisProps extends EventAttributes, Partial<Presentat
|
||||
tick?: boolean | object | React.ReactElement<any> | ContentRenderer<any>;
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user