Transformed types

Using the [ts.js codemod](https://gist.github.com/tschaub/1ea498c9d1e5268cf36d212b3949be4e):

    jscodeshift --transform ts.js src
This commit is contained in:
Tim Schaub
2018-09-05 08:05:29 -06:00
parent f2aaaa19e1
commit ccfacc5ee6
239 changed files with 3999 additions and 3999 deletions
+3 -3
View File
@@ -4,7 +4,7 @@
/**
* @type {Object<string, module:ol/proj/Projection>}
* @type {Object<string, import("./Projection.js").default>}
*/
let cache = {};
@@ -20,7 +20,7 @@ export function clear() {
/**
* Get a cached projection by code.
* @param {string} code The code for the projection.
* @return {module:ol/proj/Projection} The projection (if cached).
* @return {import("./Projection.js").default} 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 {module:ol/proj/Projection} projection The projection to cache.
* @param {import("./Projection.js").default} projection The projection to cache.
*/
export function add(code, projection) {
cache[code] = projection;