From 7c147a7ab3ad340d20cb1ebb1e1703715c50fdea Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Tue, 24 Jul 2018 16:11:59 -0700 Subject: [PATCH] Update types. --- externs/closure-types.js | 4 ++++ types/lib/mixins/element-mixin.d.ts | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/externs/closure-types.js b/externs/closure-types.js index 8e7f3dd19a..ec51bccff4 100644 --- a/externs/closure-types.js +++ b/externs/closure-types.js @@ -886,6 +886,10 @@ Polymer_ElementMixin._finalizeClass = function(){}; */ Polymer_ElementMixin.createObservers = function(observers, dynamicFns){}; /** +* @return {!HTMLTemplateElement} +*/ +Polymer_ElementMixin._getTemplateFromDomModule = function(){}; +/** * @param {string} cssText Text containing styling to process * @param {string} baseURI Base URI to rebase CSS paths against * @return {string} diff --git a/types/lib/mixins/element-mixin.d.ts b/types/lib/mixins/element-mixin.d.ts index 879ca122d7..a02de4188e 100644 --- a/types/lib/mixins/element-mixin.d.ts +++ b/types/lib/mixins/element-mixin.d.ts @@ -113,6 +113,14 @@ declare namespace Polymer { */ createObservers(observers: object|null, dynamicFns: object|null): void; + /** + * Look up template from dom-module for element + * + * @returns Template found in dom module, or + * undefined if not found + */ + _getTemplateFromDomModule(): HTMLTemplateElement; + /** * Gather style text for a style element in the template. *