Skip to content

Commit 6b82c48

Browse files
authored
Merge pull request #21313 from gzamann/fix-axis-common-type
fix: axis common types. close #21312
2 parents b217c9b + 075d1a8 commit 6b82c48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/coord/axisCommonTypes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,14 @@ export interface AxisBaseOptionCommon extends ComponentOption,
102102
* + 'dataMin': use the min value in data.
103103
* + null/undefined: auto decide min value (consider pretty look and boundaryGap).
104104
*/
105-
min?: ScaleDataValue | 'dataMin' | ((extent: {min: number, max: number}) => ScaleDataValue);
105+
min?: ScaleDataValue | 'dataMin' | ((extent: {min: number, max: number}) => ScaleDataValue | NullUndefined);
106106
/**
107107
* Max value of the axis. can be:
108108
* + ScaleDataValue
109109
* + 'dataMax': use the max value in data.
110110
* + null/undefined: auto decide max value (consider pretty look and boundaryGap).
111111
*/
112-
max?: ScaleDataValue | 'dataMax' | ((extent: {min: number, max: number}) => ScaleDataValue);
112+
max?: ScaleDataValue | 'dataMax' | ((extent: {min: number, max: number}) => ScaleDataValue | NullUndefined);
113113
startValue?: number;
114114

115115
jitter?: number;

0 commit comments

Comments
 (0)