Open mchadwick94 opened 1 week ago
Passing OpenLayers properties that are not explicitly enumerated is not an official feature although it works indeed.
Alas, I do not see how this can be expressed with the current capabilities of TypeScript since the properties use inheritance and the TypeScript mapped types currently do not support interfaces.
I have been using the 'declutter' property on my RLayerVector components within JavaScript (.js) react components with no issues as below:
However I am now starting to use TypeScript (.tsx) components and the 'declutter' prop isn't available to be used within them, and the following exception is shown: