mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
Update types.
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
3
types/lib/elements/dom-module.d.ts
vendored
3
types/lib/elements/dom-module.d.ts
vendored
@@ -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
|
||||
|
||||
3
types/lib/legacy/legacy-element-mixin.d.ts
vendored
3
types/lib/legacy/legacy-element-mixin.d.ts
vendored
@@ -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`
|
||||
|
||||
2
types/lib/mixins/disable-upgrade-mixin.d.ts
vendored
2
types/lib/mixins/disable-upgrade-mixin.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
3
types/lib/mixins/properties-changed.d.ts
vendored
3
types/lib/mixins/properties-changed.d.ts
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user