From 34d22acd7baabec37e014d10e07a38485cc44c28 Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Mon, 31 Jul 2017 11:05:09 -0700 Subject: [PATCH] add mixin class instance properties to externs --- externs/closure-types.js | 93 ++++++++++++++++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 94 insertions(+), 1 deletion(-) diff --git a/externs/closure-types.js b/externs/closure-types.js index 9bb565e1f0..7585042816 100644 --- a/externs/closure-types.js +++ b/externs/closure-types.js @@ -10,6 +10,39 @@ * @interface */ function Polymer_PropertyAccessors(){} +/** @type {boolean} */ +Polymer_PropertyAccessors.prototype.__serializing; + +/** @type {number} */ +Polymer_PropertyAccessors.prototype.__dataCounter; + +/** @type {boolean} */ +Polymer_PropertyAccessors.prototype.__dataEnabled; + +/** @type {boolean} */ +Polymer_PropertyAccessors.prototype.__dataReady; + +/** @type {boolean} */ +Polymer_PropertyAccessors.prototype.__dataInvalid; + +/** @type {!Object} */ +Polymer_PropertyAccessors.prototype.__data; + +/** @type {Object} */ +Polymer_PropertyAccessors.prototype.__dataPending; + +/** @type {Object} */ +Polymer_PropertyAccessors.prototype.__dataOld; + +/** @type {Object} */ +Polymer_PropertyAccessors.prototype.__dataProto; + +/** @type {Object} */ +Polymer_PropertyAccessors.prototype.__dataHasAccessor; + +/** @type {Object} */ +Polymer_PropertyAccessors.prototype.__dataInstanceProps; + /** * @param {string} name Name of attribute that changed * @param {?string} old Old attribute value @@ -216,6 +249,66 @@ Polymer_TemplateStamp._contentForTemplate = function(template){}; * @extends {Polymer_PropertyAccessors} */ function Polymer_PropertyEffects(){} +/** @type {number} */ +Polymer_PropertyEffects.prototype.__dataCounter; + +/** @type {!Object} */ +Polymer_PropertyEffects.prototype.__data; + +/** @type {!Object} */ +Polymer_PropertyEffects.prototype.__dataPending; + +/** @type {!Object} */ +Polymer_PropertyEffects.prototype.__dataOld; + +/** @type {boolean} */ +Polymer_PropertyEffects.prototype.__dataClientsReady; + +/** @type {Array} */ +Polymer_PropertyEffects.prototype.__dataPendingClients; + +/** @type {Object} */ +Polymer_PropertyEffects.prototype.__dataToNotify; + +/** @type {Object} */ +Polymer_PropertyEffects.prototype.__dataLinkedPaths; + +/** @type {boolean} */ +Polymer_PropertyEffects.prototype.__dataHasPaths; + +/** @type {Object} */ +Polymer_PropertyEffects.prototype.__dataCompoundStorage; + +/** @type {Polymer_PropertyEffects} */ +Polymer_PropertyEffects.prototype.__dataHost; + +/** @type {!Object} */ +Polymer_PropertyEffects.prototype.__dataTemp; + +/** @type {boolean} */ +Polymer_PropertyEffects.prototype.__dataClientsInitialized; + +/** @type {Object} */ +Polymer_PropertyEffects.prototype.__computeEffects; + +/** @type {Object} */ +Polymer_PropertyEffects.prototype.__reflectEffects; + +/** @type {Object} */ +Polymer_PropertyEffects.prototype.__notifyEffects; + +/** @type {Object} */ +Polymer_PropertyEffects.prototype.__propagateEffects; + +/** @type {Object} */ +Polymer_PropertyEffects.prototype.__observeEffects; + +/** @type {Object} */ +Polymer_PropertyEffects.prototype.__readOnly; + +/** @type {!TemplateInfo} */ +Polymer_PropertyEffects.prototype.__templateInfo; + /** * @override * @param {!HTMLTemplateElement} template Template to stamp diff --git a/package.json b/package.json index 9c6d273f19..72c4d68e0a 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "test": "test" }, "devDependencies": { - "@polymer/gen-closure-declarations": "^0.1.0", + "@polymer/gen-closure-declarations": "^0.2.0", "@webcomponents/shadycss": "^1.0.0", "@webcomponents/webcomponentsjs": "^1.0.2", "babel-preset-babili": "^0.1.4",