diff --git a/types/heatmap.js/index.d.ts b/types/heatmap.js/index.d.ts index 288d50b448..265f17f5fb 100644 --- a/types/heatmap.js/index.d.ts +++ b/types/heatmap.js/index.d.ts @@ -159,7 +159,7 @@ export class Heatmap { * // get the value at x=10, y=10 * heatmapInstance.getValueAt({ x: 10, y: 10 }); // returns 100 */ - getValueAt(point: Point<'x', 'y'>): number; + getValueAt(point: { x: number, y: number }): number; /** * Returns a persistable and reimportable (with setData) JSON object. @@ -305,12 +305,6 @@ export interface HeatmapOverlayConfiguration< lngField?: TLong; } -/** - * A position in the heatmap. - */ -export type Point = - Record; - /** * A single data point on a heatmap. The interface of the data point can be * overridden by providing alternative values for `xKey` and `yKey` in the @@ -320,8 +314,7 @@ export type DataPoint< V extends string = 'value', X extends string = 'x', Y extends string = 'y', -> = - Record & Point; +> = Record; /** * Type of data returned by `Heatmap#hello`, which ignores custom `xField`,