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

@@ -14,14 +14,14 @@ import {appendParams} from '../uri.js';
/**
* @typedef {Object} Options
* @property {module:ol/source/Source~AttributionLike} [attributions] Attributions.
* @property {import("./Source.js").AttributionLike} [attributions] Attributions.
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
* you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to
* access pixel data with the Canvas renderer. See
* https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
* @property {boolean} [hidpi=true] Use the `ol/Map#pixelRatio` value when requesting the image from
* the remote server.
* @property {module:ol/Image~LoadFunction} [imageLoadFunction] Optional function to load an image given
* @property {import("../Image.js").LoadFunction} [imageLoadFunction] Optional function to load an image given
* a URL.
* @property {Object<string,*>} params ArcGIS Rest parameters. This field is optional. Service
* defaults will be used for any fields not specified. `FORMAT` is `PNG32` by default. `F` is
@@ -29,7 +29,7 @@ import {appendParams} from '../uri.js';
* will be set dynamically. Set `LAYERS` to override the default service layer visibility. See
* http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Export_Map/02r3000000v7000000/
* for further reference.
* @property {module:ol/proj~ProjectionLike} projection Projection.
* @property {import("../proj.js").ProjectionLike} projection Projection.
* @property {number} [ratio=1.5] Ratio. `1` means image requests are the size of the map viewport,
* `2` means twice the size of the map viewport, and so on.
* @property {Array<number>} [resolutions] Resolutions. If specified, requests will be made for
@@ -53,11 +53,11 @@ import {appendParams} from '../uri.js';
*/
class ImageArcGISRest extends ImageSource {
/**
* @param {module:ol/source/ImageArcGISRest~Options=} opt_options Image ArcGIS Rest Options.
* @param {Options=} opt_options Image ArcGIS Rest Options.
*/
constructor(opt_options) {
const options = opt_options || /** @type {module:ol/source/ImageArcGISRest~Options} */ ({});
const options = opt_options || /** @type {Options} */ ({});
super({
attributions: options.attributions,
@@ -86,7 +86,7 @@ class ImageArcGISRest extends ImageSource {
/**
* @private
* @type {module:ol/Image~LoadFunction}
* @type {import("../Image.js").LoadFunction}
*/
this.imageLoadFunction_ = options.imageLoadFunction !== undefined ?
options.imageLoadFunction : defaultImageLoadFunction;
@@ -100,13 +100,13 @@ class ImageArcGISRest extends ImageSource {
/**
* @private
* @type {module:ol/Image}
* @type {import("../Image.js").default}
*/
this.image_ = null;
/**
* @private
* @type {module:ol/size~Size}
* @type {import("../size.js").Size}
*/
this.imageSize_ = [0, 0];
@@ -207,7 +207,7 @@ class ImageArcGISRest extends ImageSource {
/**
* Return the image load function of the source.
* @return {module:ol/Image~LoadFunction} The image load function.
* @return {import("../Image.js").LoadFunction} The image load function.
* @api
*/
getImageLoadFunction() {
@@ -215,10 +215,10 @@ class ImageArcGISRest extends ImageSource {
}
/**
* @param {module:ol/extent~Extent} extent Extent.
* @param {module:ol/size~Size} size Size.
* @param {import("../extent.js").Extent} extent Extent.
* @param {import("../size.js").Size} size Size.
* @param {number} pixelRatio Pixel ratio.
* @param {module:ol/proj/Projection} projection Projection.
* @param {import("../proj/Projection.js").default} projection Projection.
* @param {Object} params Params.
* @return {string} Request URL.
* @private
@@ -255,7 +255,7 @@ class ImageArcGISRest extends ImageSource {
/**
* Set the image load function of the source.
* @param {module:ol/Image~LoadFunction} imageLoadFunction Image load function.
* @param {import("../Image.js").LoadFunction} imageLoadFunction Image load function.
* @api
*/
setImageLoadFunction(imageLoadFunction) {