Merge pull request #8754 from wallw-bits/fix-typecheck-math
Fix type check in ol/math
This commit is contained in:
+1
-1
@@ -35,7 +35,7 @@ export const cosh = (function() {
|
|||||||
} else {
|
} else {
|
||||||
// … else, use the reference implementation of MDN:
|
// … else, use the reference implementation of MDN:
|
||||||
cosh = function(x) {
|
cosh = function(x) {
|
||||||
const y = Math.exp(x);
|
const y = /** @type {Math} */ (Math).exp(x);
|
||||||
return (y + 1 / y) / 2;
|
return (y + 1 / y) / 2;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user