Add a LineStringLike typedef.

This commit is contained in:
Marc Jansen
2012-06-25 22:46:11 +02:00
parent 0a60d2dc82
commit 25202cae6d

View File

@@ -4,9 +4,14 @@ goog.require('ol.geom.LineString');
goog.require('ol.geom.point');
goog.require('ol.projection');
/**
* @typedef {Array.<ol.PointLike>} linestring LineString.
*/
ol.LineStringLike;
/**
* @export
* @param {Array.<ol.PointLike>} opt_arg Point.
* @param {ol.LineStringLike} opt_arg Points.
* @return {ol.geom.LineString} LineString.
*/
ol.geom.linestring = function(opt_arg){