Replies: 4 comments 5 replies
-
What does "default" mean to you? deck.gl is importing a type library for these so they are not home grown. deck.gl/modules/geo-layers/package.json Line 54 in 6971bc6 In fact there was recently a PR in deck.gl-community to align with the above: visgl/deck.gl-community#110 |
Beta Was this translation helpful? Give feedback.
-
I see these are from 'geojson' |
Beta Was this translation helpful? Give feedback.
-
So we just need to wait until the geojson types are used instead of custom ones in visgl/deck.gl-community#110 |
Beta Was this translation helpful? Give feedback.
-
Hi!
When I use typescript and I wish to type a featureCollection, I usually use the default GeoJSON.FeatureCollection<GeoJSON.MultiPolygon> or other feature type, but it fails to match the deck.gl internal geojson types and I get errors like:
Type 'FeatureCollection<MultiPolygon, GeoJsonProperties>' is not assignable to type 'FeatureCollection'.
Do you know how to make deck.gl types compatible with default ones?
Beta Was this translation helpful? Give feedback.
All reactions