Since updating to OpenLayers 6.6.1, I have been bombarded with numerous typescript errors related to generics.
For example...
import olLayerVector from 'ol/layer/Vector';
import olFeature from 'ol/Feature';
public static highlightOverlay: olLayerVector = new olLayerVector({});
const selectedFeatures: Array<olFeature> =
MapValues.highlightOverlay.getSource().getFeatures();
this code snippet is causing the following errors:
Generic type 'VectorLayer' requires 1 type argument(s)
Generic type 'Feature' requires 1 type argument(s).
I've come across some discussions like...
https://github.com/openlayers/openlayers/issues/8673
which suggest that using // @ts-ignore might be a workaround, but I'm looking for a better solution than cluttering my project with typescript errors related to generics.
If anyone has any insights or solutions, I would greatly appreciate your help.