Use Array<Foo> instead of Array.<Foo>

This commit is contained in:
Tim Schaub
2018-07-25 18:32:43 -07:00
parent 5a6502572f
commit d12ef20b12
184 changed files with 1194 additions and 1194 deletions

View File

@@ -174,7 +174,7 @@ class LRUCache extends EventTarget {
/**
* @return {Array.<string>} Keys.
* @return {Array<string>} Keys.
*/
getKeys() {
const keys = new Array(this.count_);
@@ -188,7 +188,7 @@ class LRUCache extends EventTarget {
/**
* @return {Array.<T>} Values.
* @return {Array<T>} Values.
*/
getValues() {
const values = new Array(this.count_);

View File

@@ -44,13 +44,13 @@ class PriorityQueue {
this.keyFunction_ = keyFunction;
/**
* @type {Array.<T>}
* @type {Array<T>}
* @private
*/
this.elements_ = [];
/**
* @type {Array.<number>}
* @type {Array<number>}
* @private
*/
this.priorities_ = [];

View File

@@ -65,8 +65,8 @@ class RBush {
/**
* Bulk-insert values into the RBush.
* @param {Array.<module:ol/extent~Extent>} extents Extents.
* @param {Array.<T>} values Values.
* @param {Array<module:ol/extent~Extent>} extents Extents.
* @param {Array<T>} values Values.
*/
load(extents, values) {
const items = new Array(values.length);
@@ -122,7 +122,7 @@ class RBush {
/**
* Return all values in the RBush.
* @return {Array.<T>} All.
* @return {Array<T>} All.
*/
getAll() {
const items = this.rbush_.all();
@@ -135,7 +135,7 @@ class RBush {
/**
* Return all values in the given extent.
* @param {module:ol/extent~Extent} extent Extent.
* @return {Array.<T>} All in extent.
* @return {Array<T>} All in extent.
*/
getInExtent(extent) {
/** @type {module:ol/structs/RBush~Entry} */
@@ -180,7 +180,7 @@ class RBush {
/**
* @param {Array.<T>} values Values.
* @param {Array<T>} values Values.
* @param {function(this: S, T): *} callback Callback.
* @param {S=} opt_this The object to use as `this` in `callback`.
* @private