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
+3 -3
View File
@@ -34,19 +34,19 @@ const WebGLContext = function(canvas, gl) {
/**
* @private
* @type {Object.<string, ol.WebglBufferCacheEntry>}
* @type {!Object.<string, ol.WebglBufferCacheEntry>}
*/
this.bufferCache_ = {};
/**
* @private
* @type {Object.<string, WebGLShader>}
* @type {!Object.<string, WebGLShader>}
*/
this.shaderCache_ = {};
/**
* @private
* @type {Object.<string, WebGLProgram>}
* @type {!Object.<string, WebGLProgram>}
*/
this.programCache_ = {};