New typedef syntax for Coordinate

This commit is contained in:
Andreas Hocevar
2018-03-07 13:43:31 +01:00
parent 3d5217f7e0
commit 5ca31e094e
2 changed files with 11 additions and 7 deletions

View File

@@ -177,13 +177,6 @@ ol.ColorLike;
ol.Constraints;
/**
* An array of numbers representing an xy coordinate. Example: `[16, 48]`.
* @typedef {Array.<number>}
*/
ol.Coordinate;
/**
* A function that takes a {@link ol.Coordinate} and transforms it into a
* `{string}`.

11
src/ol/types.js Normal file
View File

@@ -0,0 +1,11 @@
/**
* @module ol/types
*/
/**
* An array of numbers representing an xy coordinate. Example: `[16, 48]`.
* @typedef {Array.<number>} Coordinate
* @api
*/