diff --git a/src/ol/render/Feature.js b/src/ol/render/Feature.js index 62ed6f08f38..838009dac44 100644 --- a/src/ol/render/Feature.js +++ b/src/ol/render/Feature.js @@ -282,10 +282,12 @@ class RenderFeature { /** * Get the feature properties. - * @return {Object} Feature properties. + * @template {Object} T = An optional generic type of the requested feature properties + * @return {T} Feature properties. * @api */ getProperties() { + // @ts-ignore (= this.properties_ as T) return this.properties_; }