diff --git a/types/plotly.js/index.d.ts b/types/plotly.js/index.d.ts index 17c45b9ca4..7901ec84bf 100644 --- a/types/plotly.js/index.d.ts +++ b/types/plotly.js/index.d.ts @@ -50,7 +50,7 @@ export interface PlotCoordinate { pointNumber: number; } -export interface SelectionDescription { +export interface SelectionRange { x: number[]; y: number[]; } @@ -59,8 +59,8 @@ export type PlotSelectedData = Partial; export interface PlotSelectionEvent { points: PlotScatterDataPoint[]; - range?: SelectionDescription; - lassoPoints?: SelectionDescription; + range?: SelectionRange; + lassoPoints?: SelectionRange; } export type PlotRestyleEvent = [