Skip to content

Commit

Permalink
update types
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Jan 30, 2018
1 parent 4177d9c commit 5521e43
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions externs/closure-types.js
Expand Up @@ -24,6 +24,10 @@ function Polymer_PropertiesChanged(){}
Polymer_PropertiesChanged.prototype._createPropertyAccessor = function(property, readOnly){};
/**
* @param {string} property Name of the property
*/
Polymer_PropertiesChanged.prototype._addPropertyToAttributeMap = function(property){};
/**
* @param {string} property Name of the property
* @param {boolean=} readOnly When true, no setter is created
* @return {void}
*/
Expand Down
9 changes: 9 additions & 0 deletions types/lib/mixins/properties-changed.d.ts
Expand Up @@ -77,6 +77,15 @@ declare namespace Polymer {
*/
_createPropertyAccessor(property: string, readOnly?: boolean): void;

/**
* Adds the given `property` to a map matching attribute names
* to property names, using `attributeNameForProperty`. This map is
* used when deserializing attribute values to properties.
*
* @param property Name of the property
*/
_addPropertyToAttributeMap(property: string): any;

/**
* Defines a property accessor for the given property.
*
Expand Down

0 comments on commit 5521e43

Please sign in to comment.