diff --git a/src/ol/math.js b/src/ol/math.js index 236e951f33..372780d7d9 100644 --- a/src/ol/math.js +++ b/src/ol/math.js @@ -35,7 +35,7 @@ export const cosh = (function() { } else { // … else, use the reference implementation of MDN: cosh = function(x) { - const y = Math.exp(x); + const y = /** @type {Math} */ (Math).exp(x); return (y + 1 / y) / 2; }; }