After upgrading to OpenLayers 6.6.1 I am receiving hundreds of typescript errors caused by generics.
For instance...
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();
produces the errors
Generic type 'VectorLayer' requires 1 type argument(s)
Generic type 'Feature' requires 1 type argument(s).
Some threads I have read such as...
https://github.com/openlayers/openlayers/issues/8673
seem to indicate that using // @ts-ignore is a fix but this NOT a good solution to having your project riddled with typescript errors on generics.
Please tell me there is a better solution...any help is greatly appreciated