Skip to content

Commit

Permalink
Update extern format.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Dec 20, 2019
1 parent 957c8c4 commit 3c128fa
Showing 1 changed file with 40 additions and 34 deletions.
74 changes: 40 additions & 34 deletions externs/webcomponents-externs.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,42 +12,48 @@
*/
/* eslint-disable */

var HTMLImports = {
/**
* @param {function()} callback
*/
whenReady(callback) {},
/**
* @param {!Node} element
* @return {?HTMLLinkElement|?Document|undefined}
*/
importForElement(element) {}
};
var HTMLImports = {};

/**
* @param {function()} callback
*/
HTMLImports.whenReady = function(callback) {};

/**
* @param {!Node} element
* @return {?HTMLLinkElement|?Document|undefined}
*/
HTMLImports.importForElement = function(element) {};

window.HTMLImports = HTMLImports;

var ShadyDOM = {
inUse: false,
flush() {},
/**
* @param {!Node} target
* @param {function(Array<MutationRecord>, MutationObserver)} callback
* @return {MutationObserver}
*/
observeChildren(target, callback) {},
/**
* @param {MutationObserver} observer
*/
unobserveChildren(observer) {},
/**
* @param {Node} node
*/
patch(node) {},
/**
* @param {!ShadowRoot} shadowroot
*/
flushInitial(shadowroot) {}
};
var ShadyDOM = {};

ShadyDOM.inUse;

ShadyDOM.flush = function() {};

/**
* @param {!Node} target
* @param {function(Array<MutationRecord>, MutationObserver)} callback
* @return {MutationObserver}
*/
ShadyDOM.observeChildren = function(target, callback) {};

/**
* @param {MutationObserver} observer
*/
ShadyDOM.unobserveChildren = function(observer) {};

/**
* @param {Node} node
*/
ShadyDOM.patch = function(node) {};

/**
* @param {!ShadowRoot} shadowroot
*/
ShadyDOM.flushInitial = function(shadowroot) {};

window.ShadyDOM = ShadyDOM;

Expand All @@ -70,4 +76,4 @@ CustomElementRegistry.prototype.polyfillWrapFlushCallback = function(cb){};
/**
* @param {string} cssText
*/
CSSStyleSheet.prototype.replaceSync = function(cssText) {};
CSSStyleSheet.prototype.replaceSync = function(cssText) {};

0 comments on commit 3c128fa

Please sign in to comment.