Add a LineStringLike typedef.

This commit is contained in:
Marc Jansen
2012-06-25 22:46:11 +02:00
parent 0a60d2dc82
commit 25202cae6d
+6 -1
View File
@@ -4,9 +4,14 @@ goog.require('ol.geom.LineString');
goog.require('ol.geom.point'); goog.require('ol.geom.point');
goog.require('ol.projection'); goog.require('ol.projection');
/**
* @typedef {Array.<ol.PointLike>} linestring LineString.
*/
ol.LineStringLike;
/** /**
* @export * @export
* @param {Array.<ol.PointLike>} opt_arg Point. * @param {ol.LineStringLike} opt_arg Points.
* @return {ol.geom.LineString} LineString. * @return {ol.geom.LineString} LineString.
*/ */
ol.geom.linestring = function(opt_arg){ ol.geom.linestring = function(opt_arg){