Transformed types
Using the [ts.js codemod](https://gist.github.com/tschaub/1ea498c9d1e5268cf36d212b3949be4e): jscodeshift --transform ts.js src
This commit is contained in:
@@ -17,7 +17,7 @@ import {clear} from '../obj.js';
|
||||
class GeometryCollection extends Geometry {
|
||||
|
||||
/**
|
||||
* @param {Array<module:ol/geom/Geometry>=} opt_geometries Geometries.
|
||||
* @param {Array<import("./Geometry.js").default>=} opt_geometries Geometries.
|
||||
*/
|
||||
constructor(opt_geometries) {
|
||||
|
||||
@@ -25,7 +25,7 @@ class GeometryCollection extends Geometry {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {Array<module:ol/geom/Geometry>}
|
||||
* @type {Array<import("./Geometry.js").default>}
|
||||
*/
|
||||
this.geometries_ = opt_geometries ? opt_geometries : null;
|
||||
|
||||
@@ -62,7 +62,7 @@ class GeometryCollection extends Geometry {
|
||||
|
||||
/**
|
||||
* Make a complete copy of the geometry.
|
||||
* @return {!module:ol/geom/GeometryCollection} Clone.
|
||||
* @return {!import("./GeometryCollection.js").default} Clone.
|
||||
* @override
|
||||
* @api
|
||||
*/
|
||||
@@ -114,7 +114,7 @@ class GeometryCollection extends Geometry {
|
||||
|
||||
/**
|
||||
* Return the geometries that make up this geometry collection.
|
||||
* @return {Array<module:ol/geom/Geometry>} Geometries.
|
||||
* @return {Array<import("./Geometry.js").default>} Geometries.
|
||||
* @api
|
||||
*/
|
||||
getGeometries() {
|
||||
@@ -122,7 +122,7 @@ class GeometryCollection extends Geometry {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {Array<module:ol/geom/Geometry>} Geometries.
|
||||
* @return {Array<import("./Geometry.js").default>} Geometries.
|
||||
*/
|
||||
getGeometriesArray() {
|
||||
return this.geometries_;
|
||||
@@ -228,7 +228,7 @@ class GeometryCollection extends Geometry {
|
||||
|
||||
/**
|
||||
* Set the geometries that make up this geometry collection.
|
||||
* @param {Array<module:ol/geom/Geometry>} geometries Geometries.
|
||||
* @param {Array<import("./Geometry.js").default>} geometries Geometries.
|
||||
* @api
|
||||
*/
|
||||
setGeometries(geometries) {
|
||||
@@ -236,7 +236,7 @@ class GeometryCollection extends Geometry {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Array<module:ol/geom/Geometry>} geometries Geometries.
|
||||
* @param {Array<import("./Geometry.js").default>} geometries Geometries.
|
||||
*/
|
||||
setGeometriesArray(geometries) {
|
||||
this.unlistenGeometriesChange_();
|
||||
@@ -280,8 +280,8 @@ class GeometryCollection extends Geometry {
|
||||
|
||||
|
||||
/**
|
||||
* @param {Array<module:ol/geom/Geometry>} geometries Geometries.
|
||||
* @return {Array<module:ol/geom/Geometry>} Cloned geometries.
|
||||
* @param {Array<import("./Geometry.js").default>} geometries Geometries.
|
||||
* @return {Array<import("./Geometry.js").default>} Cloned geometries.
|
||||
*/
|
||||
function cloneGeometries(geometries) {
|
||||
const clonedGeometries = [];
|
||||
|
||||
Reference in New Issue
Block a user