There seems to be no public issue tracker for the library itself, so I'm putting this here for now.
There are several errors in the index.d.ts in @here/maps-api-for-javascript@1.31.0.
These require the use of // @ts-ignore to skip type checking in order to use the API.
Those that I have noticed:
H.geo.Point.validate has this : H.geo.Point as the first argument, which should not be present in a static method
- Multiple classes have
data as a required member when (according to the documentation) it should be optional.
H.map.AbstractMarker.Options
H.map.Circle.Options
H.map.DomMarker.Options
H.map.Group.Options
H.map.Marker.Options
H.map.Object.Options
H.map.Overlay.Options
H.map.Polygon.Options
H.map.Polyline.Options
H.map.Rect.Options
H.map.Spatial.Options
H.map.provider.Tile
H.ui.base.Button.Options
There seems to be no public issue tracker for the library itself, so I'm putting this here for now.
There are several errors in the
index.d.tsin@here/maps-api-for-javascript@1.31.0.These require the use of
// @ts-ignoreto skip type checking in order to use the API.Those that I have noticed:
H.geo.Point.validatehasthis : H.geo.Pointas the first argument, which should not be present in a static methoddataas a required member when (according to the documentation) it should be optional.H.map.AbstractMarker.OptionsH.map.Circle.OptionsH.map.DomMarker.OptionsH.map.Group.OptionsH.map.Marker.OptionsH.map.Object.OptionsH.map.Overlay.OptionsH.map.Polygon.OptionsH.map.Polyline.OptionsH.map.Rect.OptionsH.map.Spatial.OptionsH.map.provider.TileH.ui.base.Button.Options