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

View File

@@ -13,7 +13,7 @@ import Triangulation from '../reproj/Triangulation.js';
/**
* @typedef {function(module:ol/extent~Extent, number, number) : module:ol/ImageBase} FunctionType
* @typedef {function(import("../extent.js").Extent, number, number) : import("../ImageBase.js").default} FunctionType
*/
@@ -24,12 +24,12 @@ import Triangulation from '../reproj/Triangulation.js';
*/
class ReprojImage extends ImageBase {
/**
* @param {module:ol/proj/Projection} sourceProj Source projection (of the data).
* @param {module:ol/proj/Projection} targetProj Target projection.
* @param {module:ol/extent~Extent} targetExtent Target extent.
* @param {import("../proj/Projection.js").default} sourceProj Source projection (of the data).
* @param {import("../proj/Projection.js").default} targetProj Target projection.
* @param {import("../extent.js").Extent} targetExtent Target extent.
* @param {number} targetResolution Target resolution.
* @param {number} pixelRatio Pixel ratio.
* @param {module:ol/reproj/Image~FunctionType} getImageFunction
* @param {FunctionType} getImageFunction
* Function returning source images (extent, resolution, pixelRatio).
*/
constructor(sourceProj, targetProj, targetExtent, targetResolution, pixelRatio, getImageFunction) {
@@ -61,19 +61,19 @@ class ReprojImage extends ImageBase {
/**
* @private
* @type {module:ol/proj/Projection}
* @type {import("../proj/Projection.js").default}
*/
this.targetProj_ = targetProj;
/**
* @private
* @type {module:ol/extent~Extent}
* @type {import("../extent.js").Extent}
*/
this.maxSourceExtent_ = maxSourceExtent;
/**
* @private
* @type {!module:ol/reproj/Triangulation}
* @type {!import("./Triangulation.js").default}
*/
this.triangulation_ = triangulation;
@@ -85,13 +85,13 @@ class ReprojImage extends ImageBase {
/**
* @private
* @type {module:ol/extent~Extent}
* @type {import("../extent.js").Extent}
*/
this.targetExtent_ = targetExtent;
/**
* @private
* @type {module:ol/ImageBase}
* @type {import("../ImageBase.js").default}
*/
this.sourceImage_ = sourceImage;
@@ -109,7 +109,7 @@ class ReprojImage extends ImageBase {
/**
* @private
* @type {?module:ol/events~EventsKey}
* @type {?import("../events.js").EventsKey}
*/
this.sourceListenerKey_ = null;
}
@@ -132,7 +132,7 @@ class ReprojImage extends ImageBase {
}
/**
* @return {module:ol/proj/Projection} Projection.
* @return {import("../proj/Projection.js").default} Projection.
*/
getProjection() {
return this.targetProj_;
@@ -187,7 +187,7 @@ class ReprojImage extends ImageBase {
* @private
*/
unlistenSource_() {
unlistenByKey(/** @type {!module:ol/events~EventsKey} */ (this.sourceListenerKey_));
unlistenByKey(/** @type {!import("../events.js").EventsKey} */ (this.sourceListenerKey_));
this.sourceListenerKey_ = null;
}
}