Do not document object literals as interfaces
Instead, object literals with properties that should not be renamed can go in externs/olx.js.
This commit is contained in:
+1
-1
@@ -379,7 +379,7 @@ ol.View2D.prototype.getView2DState = function() {
|
||||
var projection = this.getProjection();
|
||||
var resolution = /** @type {number} */ (this.getResolution());
|
||||
var rotation = this.getRotation();
|
||||
return /** @type {oli.View2DState} */ ({
|
||||
return /** @type {olx.View2DState} */ ({
|
||||
center: center.slice(),
|
||||
projection: goog.isDef(projection) ? projection : null,
|
||||
resolution: resolution,
|
||||
|
||||
Reference in New Issue
Block a user