From 92befae704d47f9d2e5ae572301edfadfb2cc29b Mon Sep 17 00:00:00 2001 From: oterral Date: Tue, 29 Aug 2017 15:58:41 +0200 Subject: [PATCH 1/2] Add some externs --- Cesium.externs.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Cesium.externs.js b/Cesium.externs.js index 53694b88d..837750c8c 100644 --- a/Cesium.externs.js +++ b/Cesium.externs.js @@ -2664,6 +2664,11 @@ Cesium.GeoJsonDataSource.load = function(data, options) {}; */ Cesium.KmlDataSource = function() {}; +/** + * @type {Cesium.EntityCollection} + */ +Cesium.KmlDataSource.prototype.entities; + /** * @typedef {{ * camera: Cesium.Camera, @@ -2763,6 +2768,11 @@ Cesium.CustomDataSource.prototype.entities; */ Cesium.EntityCollection = function() {} +/** + * @param {string|number} id + * @return {Cesium.Entity} + */ +Cesium.EntityCollection.prototype.getById = function(id) {} /** * @param {Cesium.Entity} entity From e9307f5ff618321eff13f20269215c30041e3c94 Mon Sep 17 00:00:00 2001 From: oterral Date: Thu, 31 Aug 2017 09:38:08 +0200 Subject: [PATCH 2/2] Revert type --- Cesium.externs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cesium.externs.js b/Cesium.externs.js index 837750c8c..78525a8b4 100644 --- a/Cesium.externs.js +++ b/Cesium.externs.js @@ -2769,7 +2769,7 @@ Cesium.CustomDataSource.prototype.entities; Cesium.EntityCollection = function() {} /** - * @param {string|number} id + * @param {string} id * @return {Cesium.Entity} */ Cesium.EntityCollection.prototype.getById = function(id) {}