Use function declaration for exports

This commit is contained in:
Marc Jansen
2018-02-06 17:26:49 +01:00
parent 753ce9ca8e
commit 9fabdf309f
+6 -6
View File
@@ -10,9 +10,9 @@
* @return {Array.<ol.Extent>} Extents. * @return {Array.<ol.Extent>} Extents.
* @api * @api
*/ */
export const all = function(extent, resolution) { export function all(extent, resolution) {
return [[-Infinity, -Infinity, Infinity, Infinity]]; return [[-Infinity, -Infinity, Infinity, Infinity]];
}; }
/** /**
@@ -23,9 +23,9 @@ export const all = function(extent, resolution) {
* @return {Array.<ol.Extent>} Extents. * @return {Array.<ol.Extent>} Extents.
* @api * @api
*/ */
export const bbox = function(extent, resolution) { export function bbox(extent, resolution) {
return [extent]; return [extent];
}; }
/** /**
@@ -34,7 +34,7 @@ export const bbox = function(extent, resolution) {
* @return {function(ol.Extent, number): Array.<ol.Extent>} Loading strategy. * @return {function(ol.Extent, number): Array.<ol.Extent>} Loading strategy.
* @api * @api
*/ */
export const tile = function(tileGrid) { export function tile(tileGrid) {
return ( return (
/** /**
* @param {ol.Extent} extent Extent. * @param {ol.Extent} extent Extent.
@@ -57,4 +57,4 @@ export const tile = function(tileGrid) {
} }
return extents; return extents;
}); });
}; }