Skip to content

Commit

Permalink
Update mixinBehaviors annotation. Behaviors don't satisfy PolymerInit. (
Browse files Browse the repository at this point in the history
  • Loading branch information
aomarks authored Jan 11, 2018
1 parent 6ab5c4a commit d7ea246
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/legacy/class.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* the underlying element.
*
* @template T
* @param {!(PolymerInit|Array<!PolymerInit>)} behaviors Behavior object or array of behaviors.
* @param {!Object|!Array<!Object>} behaviors Behavior object or array of behaviors.
* @param {function(new:T)} klass Element class.
* @return {function(new:T)} Returns a new Element class extended by the
* passed in `behaviors` and also by `Polymer.LegacyElementMixin`.
Expand Down
2 changes: 1 addition & 1 deletion types/lib/legacy/class.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ declare namespace Polymer {
* @returns Returns a new Element class extended by the
* passed in `behaviors` and also by `Polymer.LegacyElementMixin`.
*/
function mixinBehaviors<T>(behaviors: PolymerInit|PolymerInit[]|null, klass: {new(): T}): {new(): T};
function mixinBehaviors<T>(behaviors: object|object[], klass: {new(): T}): {new(): T};


/**
Expand Down

0 comments on commit d7ea246

Please sign in to comment.