Skip to content

Commit 5521e43

Browse files
author
Steven Orvell
committed
update types
1 parent 4177d9c commit 5521e43

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

externs/closure-types.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ function Polymer_PropertiesChanged(){}
2424
Polymer_PropertiesChanged.prototype._createPropertyAccessor = function(property, readOnly){};
2525
/**
2626
* @param {string} property Name of the property
27+
*/
28+
Polymer_PropertiesChanged.prototype._addPropertyToAttributeMap = function(property){};
29+
/**
30+
* @param {string} property Name of the property
2731
* @param {boolean=} readOnly When true, no setter is created
2832
* @return {void}
2933
*/

types/lib/mixins/properties-changed.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,15 @@ declare namespace Polymer {
7777
*/
7878
_createPropertyAccessor(property: string, readOnly?: boolean): void;
7979

80+
/**
81+
* Adds the given `property` to a map matching attribute names
82+
* to property names, using `attributeNameForProperty`. This map is
83+
* used when deserializing attribute values to properties.
84+
*
85+
* @param property Name of the property
86+
*/
87+
_addPropertyToAttributeMap(property: string): any;
88+
8089
/**
8190
* Defines a property accessor for the given property.
8291
*

0 commit comments

Comments
 (0)