Module types for ol/proj

This commit is contained in:
Tim Schaub
2018-03-11 23:20:25 -06:00
parent ef70d71636
commit a743ec3989
49 changed files with 103 additions and 103 deletions
+3 -3
View File
@@ -4,7 +4,7 @@
/**
* @type {Object.<string, ol.proj.Projection>}
* @type {Object.<string, module:ol/proj/Projection~Projection>}
*/
let cache = {};
@@ -20,7 +20,7 @@ export function clear() {
/**
* Get a cached projection by code.
* @param {string} code The code for the projection.
* @return {ol.proj.Projection} The projection (if cached).
* @return {module:ol/proj/Projection~Projection} The projection (if cached).
*/
export function get(code) {
return cache[code] || null;
@@ -30,7 +30,7 @@ export function get(code) {
/**
* Add a projection to the cache.
* @param {string} code The projection code.
* @param {ol.proj.Projection} projection The projection to cache.
* @param {module:ol/proj/Projection~Projection} projection The projection to cache.
*/
export function add(code, projection) {
cache[code] = projection;