Replies: 1 comment 1 reply
-
so if you look at the source for DeckGlLayer, you'll see it's using a generic that just expects an array of some type, and this helps it to inform the typing on the event handlers which would use a singleton of that type. What is |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Almost broke my head on trying to find a solution for type mismatch on DeckGlLayer
For some reason Typescript expects
data: string[]
, while it's completely useless to have an array of string here.in the DeckGlLayer example https://svelte-maplibre.vercel.app/examples/deckgl-arcs data is an array of objects too.
Am I missing something? Of course everything works, just typescript is whining a bit :)
Beta Was this translation helpful? Give feedback.
All reactions