Better type definition

Fixes the `Invalid type(s) for operator IN.` warnings from the closure compiler.
This commit is contained in:
Frederic Junod
2018-03-07 15:51:10 +01:00
parent 21bf83537d
commit 3435ac575e
29 changed files with 72 additions and 103 deletions

View File

@@ -126,21 +126,21 @@ const VectorSource = function(opt_options) {
/**
* @private
* @type {Object.<string, ol.Feature>}
* @type {!Object.<string, ol.Feature>}
*/
this.nullGeometryFeatures_ = {};
/**
* A lookup of features by id (the return from feature.getId()).
* @private
* @type {Object.<string, ol.Feature>}
* @type {!Object.<string, ol.Feature>}
*/
this.idIndex_ = {};
/**
* A lookup of features without id (keyed by ol.getUid(feature)).
* @private
* @type {Object.<string, ol.Feature>}
* @type {!Object.<string, ol.Feature>}
*/
this.undefIdIndex_ = {};