-
-
Notifications
You must be signed in to change notification settings - Fork 641
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
maplibre v2.0.0 typings angular 13 #776
Comments
Types are now generated from the code. See the breaking changes in the release notes. |
I now see this too in my project. |
I wrote a small example to reproduce these errors: https://github.com/wipfli/maplibre-typescript This is a GitHub repo with a minimal TypeScript usage example. A GitHub workflow runs the TypeScript compiler, which fails with the following error message (see workflow run):
|
It's even easier than that. |
Good idea. |
See branch |
Like these friends I guess... maplibre-gl-js/src/data/array_types.ts Lines 1057 to 1075 in a99adaa
|
Yup. |
We might need to publish the missing packages to definitely types project as the PR in mapbox are not being merged... :-( |
Beautiful @HarelM, so with the
|
Or we create a fork of https://github.com/mapbox/vector-tile-js |
ahh, wait, the tool didn't finished the run due to errors. let me try again... |
GeoJSON error should be fixed by adding @types/geojson package I believe...? |
I think you uploaded the same file again. |
oh... yea... it has the same content. |
I can help with the failing unit tests. Can you open a pull request? |
OK, so now the problem remains with the fact that |
The branch is in this repo. Feel free to open a PR. |
@RobinKamps can you check if the following file is good with angular 13? |
It does work with Angular 13. |
@RobinKamps I've published 2.0.2 please let me know if it works for you. |
2.0.2 is working fine. |
I'm not sure what I did wrong but it seems that version 2.0.3 is not working anymore although I think the typings there are correct and even better than 2.0.2.
What I basically did between 2.0.2 and 2.0.3 is that I now use the packages from mapbox along with typings that are from definitely typed. |
Nevermind, I found the missing package.json file that for some reason was not published with 2.0.3... :-( |
typings can not be found / are missing in 'node_modules/maplibre-gl/dist/maplibre-gl.d.ts'
e.g. TriangleIndexArray, LineIndexArray, LineStripIndexArray, VectorTileFeature, TransferableGridIndex, setSourceType, and a few more.
The text was updated successfully, but these errors were encountered: