-
Notifications
You must be signed in to change notification settings - Fork 431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript definition errors #132
Comments
All errors still there in 1.36.0 |
1.38.0 has added a new problem. This will cause a compilation failure for almost everyone.
As a workaround, users must now cast it to const platform = new H.service.Platform(environment.herePlatform);
const defaultLayers = platform.createDefaultLayers() as any; |
vector. +1 |
All errors still there in 1.61.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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/[email protected]
.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
hasthis : H.geo.Point
as the first argument, which should not be present in a static methoddata
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
The text was updated successfully, but these errors were encountered: