Skip to content

Commit

Permalink
Annotate klass class as @Private.
Browse files Browse the repository at this point in the history
Annotate that dedupingMixin returns T.
  • Loading branch information
aomarks committed Dec 8, 2017
1 parent 4915b0a commit b02c458
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/utils/mixin.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
* @memberof Polymer
* @template T
* @param {T} mixin ES6 class expression mixin to wrap
* @return {T}
* @suppress {invalidCasts}
*/
Polymer.dedupingMixin = function(mixin) {
Expand Down
2 changes: 2 additions & 0 deletions lib/utils/templatize.html
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@
/**
* @constructor
* @extends {base}
* @private
*/
let klass = class extends base { };
klass.prototype.__templatizeOptions = options;
Expand Down Expand Up @@ -464,6 +465,7 @@
// Host property forwarding must be installed onto template instance
addPropagateEffects(template, templateInfo, options);
// Subclass base class and add reference for this specific template
/** @private */
let klass = class TemplateInstance extends baseClass {};
klass.prototype._methodHost = findMethodHost(template);
klass.prototype.__dataHost = template;
Expand Down

0 comments on commit b02c458

Please sign in to comment.