Skip to content

Commit fde1aa7

Browse files
authored
fix(types): Allow setScale to accept { min: null, max: null } (#1097)
1 parent b645963 commit fde1aa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dist/uPlot.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ declare class uPlot {
7777
setData(data: uPlot.AlignedData, resetScales?: boolean): void;
7878

7979
/** sets the limits of a scale & redraws (used for zooming) */
80-
setScale(scaleKey: string, limits: { min: number; max: number }): void;
80+
setScale(scaleKey: string, limits: ({ min: number; max: number } | { min: null; max: null })): void;
8181

8282
/** sets the cursor position (relative to plotting area) */
8383
setCursor(opts: {left: number, top: number}, fireHook?: boolean): void;

0 commit comments

Comments
 (0)