Down to 30ish warnings, need PolymerPass v2

This commit is contained in:
Daniel Freedman
2017-06-06 11:35:38 -07:00
parent 872e1c277f
commit de87c5850c
17 changed files with 1824 additions and 1041 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -3,8 +3,48 @@
* @externs
*/
/* eslint-disable */
/**
* @param {!{is: string}} init
* @typedef Object<string, {
* value: *,
* type: (Function | undefined),
* readOnly: (boolean | undefined),
* computed: (string | undefined),
* reflectToAttribute: (boolean | undefined),
* notify: (boolean | undefined),
* observer: (string | undefined)
* }>)
*/
let PolymerElementProperties;
/**
* @typedef {{
* is: string,
* extends: (string | undefined),
* properties: (!PolymerElementProperties | undefined),
* observers: (!Array<string> | undefined),
* template: (!HTMLTemplateElement | string | undefined),
* hostAttributes: (!Object<string, *> | undefined),
* listeners: (!Object<string, string> | undefined)
* }}
*/
let PolymerInit;
let PolymerElementConstructor = function () { };
/** @type {(string | undefined)} */
PolymerElementConstructor.is;
/** @type {(string | undefined)} */
PolymerElementConstructor.extends;
/** @type {(!PolymerElementProperties | undefined)} */
PolymerElementConstructor.properties;
/** @type {(!Array<string> | undefined)} */
PolymerElementConstructor.observers;
/** @type {(!HTMLTemplateElement | string | undefined)} */
PolymerElementConstructor.template;
/**
* @param {!PolymerInit} init
* @return {!HTMLElement}
*/
function Polymer(init){}
@@ -32,4 +72,42 @@ PolymerTelemetry.prototype._regLog;
/** @type {function(HTMLElement)} */
PolymerTelemetry.prototype.register;
/** @type {function(HTMLElement)} */
PolymerTelemetry.prototype.dumpRegistrations;
PolymerTelemetry.prototype.dumpRegistrations;
/**
* @typedef {{
* name: (string | undefined),
* structured: (boolean | undefined),
* wildcard: (boolean | undefined)
* }}
*/
var DataTrigger;
/**
* @typedef {{
* info: ?,
* trigger: (!DataTrigger | undefined),
* fn: (!Function | undefined)
* }}
*/
var DataEffect;
/**
* @record
* @extends {Polymer_PropertyEffects}
*/
function PropertyEffectsInstance(){}
/** @type {Object<string, !Array<!DataEffect>>} */
PropertyEffectsInstance.prototype.__computeEffects;
/** @type {Object<string, !Array<!DataEffect>>} */
PropertyEffectsInstance.prototype.__reflectEffects;
/** @type {Object<string, !Array<!DataEffect>>} */
PropertyEffectsInstance.prototype.__notifyEffects;
/** @type {Object<string, !Array<!DataEffect>>} */
PropertyEffectsInstance.prototype.__propagateEffects;
/** @type {Object<string, !Array<!DataEffect>>} */
PropertyEffectsInstance.prototype.__observeEffects;
/** @type {Object<string, !Array<!DataEffect>>} */
PropertyEffectsInstance.prototype.__readOnly;
/** @type {Object} */
PropertyEffectsInstance.prototype.__data;