diff --git a/highcharts/modules/map/index.d.ts b/highcharts/modules/map/index.d.ts index 9818729a62..d5945ddbf7 100644 --- a/highcharts/modules/map/index.d.ts +++ b/highcharts/modules/map/index.d.ts @@ -3,11 +3,64 @@ // Definitions by: Albert Ozimek // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -import { Static } from 'highcharts'; +import * as highcharts from 'highcharts'; +import * as geojson from 'geojson'; declare module 'highcharts' { export interface Static { - mapChart(renderTo: string | HTMLElement, options: Options, callback?: (chart: ChartObject) => void): ChartObject; + mapChart(renderTo: string | HTMLElement, options: MapOptions, callback?: (chart: highcharts.ChartObject) => void): highcharts.ChartObject; + } + + export interface MapOptions { + chart?: highcharts.ChartOptions; + + legend?: highcharts.LegendOptions; + + mapNavigation?: Navigation; + + series?: MapSeriesOptions[]; + + colorAxis?: ColorAxis; + + title?: highcharts.TitleOptions; + } + + interface MapSeriesOptions { + data?: number[] | [number, number][] | [string, number][] | highcharts.DataPoint[]; + + dataLabels?: MapSeriesOptionsDataLabels; + + joinBy?: Array; + + mapData?: geojson.GeoJsonObject; + + name?: string; + + states?: MapSeriesOptionsStates; + + tooltip?: MapSeriesOptionsTooltip; + + type?: string; + } + + export interface Navigation { + + } + + export interface MapSeriesOptionsDataLabels { + + } + + export interface MapSeriesOptionsStates { + + } + + export interface MapSeriesOptionsTooltip { + + } + + export interface ColorAxis { + } }