Merge pull request #9028 from OSHistory/specifyArrayType
Specify the return array as coordinates
This commit is contained in:
@@ -51,7 +51,7 @@ class SimpleGeometry extends Geometry {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @abstract
|
* @abstract
|
||||||
* @return {Array} Coordinates.
|
* @return {Array<*>} Coordinates.
|
||||||
*/
|
*/
|
||||||
getCoordinates() {
|
getCoordinates() {
|
||||||
return abstract();
|
return abstract();
|
||||||
@@ -158,7 +158,7 @@ class SimpleGeometry extends Geometry {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @abstract
|
* @abstract
|
||||||
* @param {!Array} coordinates Coordinates.
|
* @param {!Array<*>} coordinates Coordinates.
|
||||||
* @param {GeometryLayout=} opt_layout Layout.
|
* @param {GeometryLayout=} opt_layout Layout.
|
||||||
*/
|
*/
|
||||||
setCoordinates(coordinates, opt_layout) {
|
setCoordinates(coordinates, opt_layout) {
|
||||||
@@ -167,7 +167,7 @@ class SimpleGeometry extends Geometry {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {GeometryLayout|undefined} layout Layout.
|
* @param {GeometryLayout|undefined} layout Layout.
|
||||||
* @param {Array} coordinates Coordinates.
|
* @param {Array<*>} coordinates Coordinates.
|
||||||
* @param {number} nesting Nesting.
|
* @param {number} nesting Nesting.
|
||||||
* @protected
|
* @protected
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user