Add @struct annotation for simple classes

This commit is contained in:
Tom Payne
2013-12-04 15:44:03 +01:00
parent 2bcfa9ee00
commit fbc23499e4
19 changed files with 31 additions and 0 deletions

View File

@@ -36,6 +36,7 @@ goog.require('ol.extent');
* @param {number} height Height.
* @param {Array.<ol.structs.RBushNode.<T>>} children Children.
* @param {?T} value Value.
* @struct
* @template T
*/
ol.structs.RBushNode = function(extent, height, children, value) {
@@ -160,6 +161,7 @@ ol.structs.RBushNode.prototype.isLeaf = function() {
* @constructor
* @param {number=} opt_maxEntries Max entries.
* @see https://github.com/mourner/rbush
* @struct
* @template T
*/
ol.structs.RBush = function(opt_maxEntries) {