Skip to content

Commit

Permalink
Meaningful closure fixes from @ChadKillingsworth
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Jul 11, 2017
1 parent 72022f2 commit 8804307
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 13 deletions.
50 changes: 40 additions & 10 deletions externs/closure-types.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@

/**
* @fileoverview Closure types for Polymer mixins
* @externs
*
* This file is generated, do not edit manually
*/
/* eslint-disable no-unused-vars, strict */

/**
* @record
* @interface
*/
function Polymer_PropertyAccessors(){}
/**
Expand All @@ -18,6 +17,7 @@ function Polymer_PropertyAccessors(){}
*/
Polymer_PropertyAccessors.prototype.attributeChangedCallback = function(name, old, value){};
/**
* @return {undefined}
*/
Polymer_PropertyAccessors.prototype._initializeProperties = function(){};
/**
Expand Down Expand Up @@ -92,15 +92,19 @@ Polymer_PropertyAccessors.prototype._setPendingProperty = function(property, val
*/
Polymer_PropertyAccessors.prototype._isPropertyPending = function(prop){};
/**
* @return {undefined}
*/
Polymer_PropertyAccessors.prototype._invalidateProperties = function(){};
/**
* @return {undefined}
*/
Polymer_PropertyAccessors.prototype._enableProperties = function(){};
/**
* @return {undefined}
*/
Polymer_PropertyAccessors.prototype._flushProperties = function(){};
/**
* @return {undefined}
*/
Polymer_PropertyAccessors.prototype.ready = function(){};
/**
Expand All @@ -122,7 +126,7 @@ Polymer_PropertyAccessors.prototype._shouldPropertyChange = function(property, v
*/
Polymer_PropertyAccessors.createPropertiesForAttributes = function(){};
/**
* @record
* @interface
*/
function Polymer_TemplateStamp(){}
/**
Expand Down Expand Up @@ -207,7 +211,7 @@ Polymer_TemplateStamp._parseTemplateNodeAttribute = function(node, templateInfo,
*/
Polymer_TemplateStamp._contentForTemplate = function(template){};
/**
* @record
* @interface
* @extends {Polymer_TemplateStamp}
* @extends {Polymer_PropertyAccessors}
*/
Expand Down Expand Up @@ -246,6 +250,7 @@ Polymer_PropertyEffects.prototype._removeEventListenerFromNode = function(node,
*/
Polymer_PropertyEffects.prototype.attributeChangedCallback = function(name, old, value){};
/**
* @return {undefined}
*/
Polymer_PropertyEffects.prototype._initializeProperties = function(){};
/**
Expand Down Expand Up @@ -326,9 +331,11 @@ Polymer_PropertyEffects.prototype._isPropertyPending = function(prop){};
*/
Polymer_PropertyEffects.prototype._invalidateProperties = function(){};
/**
* @return {undefined}
*/
Polymer_PropertyEffects.prototype._enableProperties = function(){};
/**
* @return {undefined}
*/
Polymer_PropertyEffects.prototype._flushProperties = function(){};
/**
Expand Down Expand Up @@ -408,9 +415,11 @@ Polymer_PropertyEffects.prototype._setUnmanagedPropertyToNode = function(node, p
*/
Polymer_PropertyEffects.prototype._enqueueClient = function(client){};
/**
* @return {undefined}
*/
Polymer_PropertyEffects.prototype._flushClients = function(){};
/**
* @return {undefined}
*/
Polymer_PropertyEffects.prototype._readyClients = function(){};
/**
Expand Down Expand Up @@ -692,7 +701,7 @@ Polymer_PropertyEffects._parseBindings = function(text, templateInfo){};
*/
Polymer_PropertyEffects._evaluateBinding = function(inst, part, path, props, oldProps, hasPaths){};
/**
* @record
* @interface
* @extends {Polymer_PropertyEffects}
*/
function Polymer_ElementMixin(){}
Expand Down Expand Up @@ -812,9 +821,11 @@ Polymer_ElementMixin.prototype._isPropertyPending = function(prop){};
*/
Polymer_ElementMixin.prototype._invalidateProperties = function(){};
/**
* @return {undefined}
*/
Polymer_ElementMixin.prototype._enableProperties = function(){};
/**
* @return {undefined}
*/
Polymer_ElementMixin.prototype._flushProperties = function(){};
/**
Expand Down Expand Up @@ -894,6 +905,7 @@ Polymer_ElementMixin.prototype._setUnmanagedPropertyToNode = function(node, prop
*/
Polymer_ElementMixin.prototype._enqueueClient = function(client){};
/**
* @return {undefined}
*/
Polymer_ElementMixin.prototype._flushClients = function(){};
/**
Expand Down Expand Up @@ -1050,9 +1062,11 @@ Polymer_ElementMixin.prototype._bindTemplate = function(template, instanceBindin
*/
Polymer_ElementMixin.prototype._removeBoundDom = function(dom){};
/**
* @return {undefined}
*/
Polymer_ElementMixin.prototype.connectedCallback = function(){};
/**
* @return {undefined}
*/
Polymer_ElementMixin.prototype.disconnectedCallback = function(){};
/**
Expand Down Expand Up @@ -1203,7 +1217,7 @@ Polymer_ElementMixin._evaluateBinding = function(inst, part, path, props, oldPro
*/
Polymer_ElementMixin.finalize = function(){};
/**
* @record
* @interface
*/
function Polymer_GestureEventListeners(){}
/**
Expand All @@ -1219,7 +1233,7 @@ Polymer_GestureEventListeners.prototype._addEventListenerToNode = function(node,
*/
Polymer_GestureEventListeners.prototype._removeEventListenerFromNode = function(node, eventName, handler){};
/**
* @record
* @interface
* @extends {Polymer_ElementMixin}
* @extends {Polymer_GestureEventListeners}
*/
Expand Down Expand Up @@ -1340,9 +1354,11 @@ Polymer_LegacyElementMixin.prototype._isPropertyPending = function(prop){};
*/
Polymer_LegacyElementMixin.prototype._invalidateProperties = function(){};
/**
* @return {undefined}
*/
Polymer_LegacyElementMixin.prototype._enableProperties = function(){};
/**
* @return {undefined}
*/
Polymer_LegacyElementMixin.prototype._flushProperties = function(){};
/**
Expand Down Expand Up @@ -1422,6 +1438,7 @@ Polymer_LegacyElementMixin.prototype._setUnmanagedPropertyToNode = function(node
*/
Polymer_LegacyElementMixin.prototype._enqueueClient = function(client){};
/**
* @return {undefined}
*/
Polymer_LegacyElementMixin.prototype._flushClients = function(){};
/**
Expand Down Expand Up @@ -1603,12 +1620,15 @@ to the element's `importPath`
*/
Polymer_LegacyElementMixin.prototype.resolveUrl = function(url, base){};
/**
* @return {undefined}
*/
Polymer_LegacyElementMixin.prototype.created = function(){};
/**
* @return {undefined}
*/
Polymer_LegacyElementMixin.prototype.attached = function(){};
/**
* @return {undefined}
*/
Polymer_LegacyElementMixin.prototype.detached = function(){};
/**
Expand All @@ -1618,12 +1638,15 @@ Polymer_LegacyElementMixin.prototype.detached = function(){};
*/
Polymer_LegacyElementMixin.prototype.attributeChanged = function(name, old, value){};
/**
* @return {undefined}
*/
Polymer_LegacyElementMixin.prototype._registered = function(){};
/**
* @return {undefined}
*/
Polymer_LegacyElementMixin.prototype._ensureAttributes = function(){};
/**
* @return {undefined}
*/
Polymer_LegacyElementMixin.prototype._applyListeners = function(){};
/**
Expand Down Expand Up @@ -1710,6 +1733,7 @@ Polymer_LegacyElementMixin.prototype.setScrollDirection = function(direction, no
*/
Polymer_LegacyElementMixin.prototype.$$ = function(slctr){};
/**
* @return {undefined}
*/
Polymer_LegacyElementMixin.prototype.distributeContent = function(){};
/**
Expand Down Expand Up @@ -2019,7 +2043,7 @@ Polymer_LegacyElementMixin._evaluateBinding = function(inst, part, path, props,
*/
Polymer_LegacyElementMixin.finalize = function(){};
/**
* @record
* @interface
*/
function Polymer_MutableData(){}
/**
Expand All @@ -2030,7 +2054,7 @@ function Polymer_MutableData(){}
*/
Polymer_MutableData.prototype._shouldPropertyChange = function(property, value, old){};
/**
* @record
* @interface
*/
function Polymer_OptionalMutableData(){}
/** @type {boolean} */
Expand All @@ -2044,7 +2068,7 @@ Polymer_OptionalMutableData.prototype.mutableData;
*/
Polymer_OptionalMutableData.prototype._shouldPropertyChange = function(property, value, old){};
/**
* @record
* @interface
* @extends {Polymer_ElementMixin}
*/
function Polymer_ArraySelectorMixin(){}
Expand Down Expand Up @@ -2179,9 +2203,11 @@ Polymer_ArraySelectorMixin.prototype._isPropertyPending = function(prop){};
*/
Polymer_ArraySelectorMixin.prototype._invalidateProperties = function(){};
/**
* @return {undefined}
*/
Polymer_ArraySelectorMixin.prototype._enableProperties = function(){};
/**
* @return {undefined}
*/
Polymer_ArraySelectorMixin.prototype._flushProperties = function(){};
/**
Expand Down Expand Up @@ -2261,6 +2287,7 @@ Polymer_ArraySelectorMixin.prototype._setUnmanagedPropertyToNode = function(node
*/
Polymer_ArraySelectorMixin.prototype._enqueueClient = function(client){};
/**
* @return {undefined}
*/
Polymer_ArraySelectorMixin.prototype._flushClients = function(){};
/**
Expand Down Expand Up @@ -2417,9 +2444,11 @@ Polymer_ArraySelectorMixin.prototype._bindTemplate = function(template, instance
*/
Polymer_ArraySelectorMixin.prototype._removeBoundDom = function(dom){};
/**
* @return {undefined}
*/
Polymer_ArraySelectorMixin.prototype.connectedCallback = function(){};
/**
* @return {undefined}
*/
Polymer_ArraySelectorMixin.prototype.disconnectedCallback = function(){};
/**
Expand All @@ -2440,6 +2469,7 @@ to the element's `importPath`
*/
Polymer_ArraySelectorMixin.prototype.resolveUrl = function(url, base){};
/**
* @return {undefined}
*/
Polymer_ArraySelectorMixin.prototype.clearSelection = function(){};
/**
Expand Down
4 changes: 2 additions & 2 deletions externs/polymer-closure-types.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/** @type {!TemplateInfo | undefined} */
StampedTemplate.prototype.templateInfo;

/** @record */
/** @interface */
function NodeInfo(){}
/** @type {string} */
NodeInfo.prototype.id;
Expand All @@ -43,7 +43,7 @@
/** @type {!Array<!Binding>} */
NodeInfo.prototype.bindings;

/** @record */
/** @interface */
function TemplateInfo(){}
/** @type {!Array<!NodeInfo>} */
TemplateInfo.prototype.nodeInfoList;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"test": "test"
},
"devDependencies": {
"@polymer/gen-closure-declarations": "0.0.5",
"@polymer/gen-closure-declarations": "^0.1.0",
"@webcomponents/shadycss": "^1.0.0",
"@webcomponents/webcomponentsjs": "^1.0.0",
"babel-preset-babili": "^0.1.4",
Expand Down

0 comments on commit 8804307

Please sign in to comment.