diff --git a/lib/mixins/template-stamp.html b/lib/mixins/template-stamp.html index c67a154469..ffbadc4ac4 100644 --- a/lib/mixins/template-stamp.html +++ b/lib/mixins/template-stamp.html @@ -267,7 +267,7 @@ // manually. next = node.nextSibling; if (node.nodeType === Node.TEXT_NODE) { - let /** @type Node */ n = next; + let /** Node */ n = next; while (n && (n.nodeType === Node.TEXT_NODE)) { node.textContent += n.textContent; next = n.nextSibling; @@ -282,7 +282,7 @@ } let childInfo = { parentIndex, parentInfo: nodeInfo }; if (this._parseTemplateNode(node, templateInfo, childInfo)) { - childInfo.infoIndex = templateInfo.nodeInfoList.push(childInfo) - 1; + childInfo.infoIndex = templateInfo.nodeInfoList.push(/** @type {!NodeInfo} */(childInfo)) - 1; } // Increment if not removed if (node.parentNode) { @@ -383,7 +383,7 @@ * @return {DocumentFragment} Content fragment */ static _contentForTemplate(template) { - let templateInfo = /** @type HTMLTemplateElementWithInfo */ (template)._templateInfo; + let templateInfo = /** @type {HTMLTemplateElementWithInfo} */ (template)._templateInfo; return (templateInfo && templateInfo.content) || template.content; }