Map options seem to be missing from typescript types

Author: EmobeCreated Mar 27, 2023Updated Mar 27, 2023

When adding a map to a grid, it is inferred as a TableElement and I get the error -

Property 'addMarker' does not exist on type 'TableElement'.

When I then explicitly say it's a MapElement like this

const map: contrib.Widgets.MapElement = grid.set(0, 0, 1, 1, contrib.map, { label: 'Markets' });

I then get Property 'addMarker' does not exist on type 'MapElement'.

It seems to want to accept setData but that's not an internal function for the Map widget

From looking at the types, there is nothing for the map options. At least that's my assumption.