Skip to content

Commit

Permalink
Update externs from internal
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Feb 7, 2019
1 parent 7823d8a commit e35a1a7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
10 changes: 10 additions & 0 deletions externs/polymer-externs.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ PolymerInit.prototype.template;
PolymerInit.prototype.hostAttributes;
/** @type {(!Object<string, string> | undefined)} */
PolymerInit.prototype.listeners;
/** @type {(!Object| !Array<!Object> | undefined)} */
PolymerInit.prototype.behaviors;

/** @record */
let PolymerElementConstructor = function () {};
Expand Down Expand Up @@ -110,6 +112,8 @@ function JSCompiler_renameProperty(string, obj) {}
function PolymerTelemetry() {}
/** @type {number} */
PolymerTelemetry.instanceCount;
/** @type {function():void} */
PolymerTelemetry.incrementInstanceCount;
/** @type {Array<HTMLElement>} */
PolymerTelemetry.registrations;
/** @type {function(HTMLElement)} */
Expand All @@ -125,6 +129,12 @@ Polymer.telemetry;
/** @type {string} */
Polymer.version;

/** @type {boolean} */
Polymer.legacyOptimizations;

/** @type {boolean} */
Polymer.syncInitialRender;

// nb. This is explicitly 'var', as Closure Compiler checks that this is the case.
/**
* @constructor
Expand Down
10 changes: 7 additions & 3 deletions externs/webcomponents-externs.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ var HTMLImports = {
*/
whenReady(callback) {},
/**
* @param {Element} element
* @returns {Document} document
* @param {!Node} element
* @return {?HTMLLinkElement|?Document|undefined}
*/
importForElement(element) {}
};
Expand All @@ -42,7 +42,11 @@ var ShadyDOM = {
/**
* @param {Node} node
*/
patch(node) {}
patch(node) {},
/**
* @param {!ShadowRoot} shadowroot
*/
flushInitial(shadowroot) {}
};

window.ShadyDOM = ShadyDOM;
Expand Down

0 comments on commit e35a1a7

Please sign in to comment.