Skip to content

Commit

Permalink
Add type jsdoc to templatize root property.
Browse files Browse the repository at this point in the history
This allows analyzer to understand it for typings/docs.
  • Loading branch information
aomarks committed Dec 13, 2018
1 parent b0c41d1 commit 0da022f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 21 deletions.
1 change: 1 addition & 0 deletions lib/utils/templatize.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ class TemplateInstanceBase extends base {
constructor(props) {
super();
this._configureProperties(props);
/** @type {!StampedTemplate} */
this.root = this._stampTemplate(this.__dataHost);
// Save list of stamped children
let children = this.children = [];
Expand Down
28 changes: 7 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0da022f

Please sign in to comment.