Update types.

This commit is contained in:
Peter Burns
2018-03-30 15:59:57 -07:00
parent f78b051895
commit 5357d64aef
5 changed files with 12 additions and 7 deletions

View File

@@ -105,9 +105,10 @@ Polymer_PropertiesChanged.prototype._shouldPropertyChange = function(property, v
* @param {string} name Name of attribute that changed
* @param {?string} old Old attribute value
* @param {?string} value New attribute value
* @param {?string} namespace Attribute namespace.
* @return {void}
*/
Polymer_PropertiesChanged.prototype.attributeChangedCallback = function(name, old, value){};
Polymer_PropertiesChanged.prototype.attributeChangedCallback = function(name, old, value, namespace){};
/**
* @param {string} attribute Name of attribute to deserialize.
* @param {?string} value of the attribute.
@@ -972,9 +973,10 @@ Polymer_LegacyElementMixin.prototype._initializeProperties = function(){};
* @param {string} name Name of attribute.
* @param {?string} old Old value of attribute.
* @param {?string} value Current value of attribute.
* @param {?string} namespace Attribute namespace.
* @return {void}
*/
Polymer_LegacyElementMixin.prototype.attributeChangedCallback = function(name, old, value){};
Polymer_LegacyElementMixin.prototype.attributeChangedCallback = function(name, old, value, namespace){};
/**
* @override
* @return {void}
@@ -1391,7 +1393,7 @@ Polymer_DisableUpgradeMixin.prototype._enableProperties = function(){};
/**
* @override
*/
Polymer_DisableUpgradeMixin.prototype.attributeChangedCallback = function(name, old, value){};
Polymer_DisableUpgradeMixin.prototype.attributeChangedCallback = function(name, old, value, namespace){};
/**
* @override
*/

View File

@@ -63,8 +63,9 @@ declare namespace Polymer {
* @param name Name of attribute.
* @param old Old value of attribute.
* @param value Current value of attribute.
* @param namespace Attribute namespace.
*/
attributeChangedCallback(name: string, old: string|null, value: string|null): void;
attributeChangedCallback(name: string, old: string|null, value: string|null, namespace: string|null): void;
/**
* Registers the dom-module at a given id. This method should only be called

View File

@@ -63,8 +63,9 @@ declare namespace Polymer {
* @param name Name of attribute.
* @param old Old value of attribute.
* @param value Current value of attribute.
* @param namespace Attribute namespace.
*/
attributeChangedCallback(name: string, old: string|null, value: string|null): void;
attributeChangedCallback(name: string, old: string|null, value: string|null, namespace: string|null): void;
/**
* Provides an implementation of `connectedCallback`

View File

@@ -42,7 +42,7 @@ declare namespace Polymer {
interface DisableUpgradeMixin {
_initializeProperties(): void;
_enableProperties(): void;
attributeChangedCallback(name: any, old: any, value: any): void;
attributeChangedCallback(name: any, old: any, value: any, namespace: any): void;
connectedCallback(): void;
disconnectedCallback(): void;
}

View File

@@ -235,8 +235,9 @@ declare namespace Polymer {
* @param name Name of attribute that changed
* @param old Old attribute value
* @param value New attribute value
* @param namespace Attribute namespace.
*/
attributeChangedCallback(name: string, old: string|null, value: string|null): void;
attributeChangedCallback(name: string, old: string|null, value: string|null, namespace: string|null): void;
/**
* Deserializes an attribute to its associated property.