I am currently attempting to implement Open Layers v7.2.2 with TypeScript. {When not using TypeScript, the code functions properly}
function OnMapClick(event: MapBrowserEvent<UIEvent>) {
event.map.forEachFeatureAtPixel(event.pixel, function(currentFeature: Feature) {
// Your code here
});
}
Error: Type error: Argument of type '(currentFeature: Feature) => void' is not assignable to parameter of type '(arg0: FeatureLike, arg1: Layer
Any assistance would be greatly appreciated. :-)