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

@@ -79,7 +79,7 @@ const CanvasTextReplay = function(
this.textFillState_ = null;
/**
* @type {Object.<string, ol.CanvasFillState>}
* @type {!Object.<string, ol.CanvasFillState>}
*/
this.fillStates = {};
@@ -90,7 +90,7 @@ const CanvasTextReplay = function(
this.textStrokeState_ = null;
/**
* @type {Object.<string, ol.CanvasStrokeState>}
* @type {!Object.<string, ol.CanvasStrokeState>}
*/
this.strokeStates = {};
@@ -101,7 +101,7 @@ const CanvasTextReplay = function(
this.textState_ = /** @type {ol.CanvasTextState} */ ({});
/**
* @type {Object.<string, ol.CanvasTextState>}
* @type {!Object.<string, ol.CanvasTextState>}
*/
this.textStates = {};