Update externs for ResizeObserver
/**
* @fileoverview The current draft spec of ResizeObserver.
* @see https://wicg.github.io/ResizeObserver/
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver
* @externs
*/
*/
var ResizeObserverCallback;
+/**
+ * @typedef {{box: string}}
+ */
+var ResizeObserverOptions;
+
/**
* @constructor
* @param {!ResizeObserverCallback} callback
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/ResizeObserver
*/
function ResizeObserver(callback) {}
-/** @type {function(!Element)} */
-ResizeObserver.prototype.observe;
+/**
+ * @param {!Element} target
+ * @param {!ResizeObserverOptions=} opt_options
+ * @return {void}
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/observe
+ */
+ResizeObserver.prototype.observe = function(target, opt_options) {};
-/** @type {function(!Element)} */
-ResizeObserver.prototype.unobserve;
+/**
+ * @param {!Element} target
+ * @return {void}
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/unobserve
+ */
+ResizeObserver.prototype.unobserve = function(target) {};
-/** @type {function()} */
-ResizeObserver.prototype.disconnect;
+/**
+ * @return {void}
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/disconnect
+ */
+ResizeObserver.prototype.disconnect = function() {};
/**
- * @constructor
- * @param {!Element} target
+ * @interface
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry
*/
-function ResizeObserverEntry(target) {}
+function ResizeObserverEntry() {}
-/** @const {!Element} */
+/**
+ * @const {!Element}
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/target
+ */
ResizeObserverEntry.prototype.target;
-/** @const {{
- * x: number,
- * y: number,
- * width: number,
- * height: number,
- * }}
+/**
+ * @const {!DOMRectReadOnly}
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/contentRect
*/
ResizeObserverEntry.prototype.contentRect;
