Skip to content

Commit

Permalink
Merge pull request #5270 from Polymer/2.x-merge-closure-fixes
Browse files Browse the repository at this point in the history
Port Closure Compiler fixes to polymer-externs
  • Loading branch information
dfreedm authored Jun 25, 2018
2 parents cbcf991 + 8051220 commit 4e6a379
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 13 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ before_script:
'\n\033[31mERROR:\033[0m Typings are stale. Please run "npm run
update-types".' && false)
script:
- wct -l chrome -l firefox
- wct -l chrome
- wct -l firefox
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then travis_wait 30 ./util/travis-sauce-test.sh; fi
env:
global:
Expand Down
32 changes: 20 additions & 12 deletions externs/polymer-externs.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@

/**
* @typedef {{
* type: !Function,
* value: *,
* readOnly: (boolean | undefined),
* computed: (string | undefined),
* reflectToAttribute: (boolean | undefined),
* notify: (boolean | undefined),
* observer: (string | function(*,*) | undefined)
* type: !Function,
* value: (* | undefined),
* readOnly: (boolean | undefined),
* computed: (string | undefined),
* reflectToAttribute: (boolean | undefined),
* notify: (boolean | undefined),
* observer: (string | function(this:?, ?, ?) | undefined)
* }}
*/
let PolymerElementPropertiesMeta;

/**
* @typedef {Object<string, !PolymerElementPropertiesMeta>}
* @typedef {Object<string, !Function|!PolymerElementPropertiesMeta>}
*/
let PolymerElementProperties;

Expand Down Expand Up @@ -69,9 +69,6 @@ PropertiesMixinConstructor.properties;
*/
function Polymer(init){}

/** @type {PolymerElementProperties} */
Polymer.ElementProperties;

/**
* @type {(function(*,string,string,Node):*)|undefined}
*/
Expand Down Expand Up @@ -109,4 +106,15 @@ Polymer.version;
* @extends {HTMLElement}
* @implements {Polymer_LegacyElementMixin}
*/
var PolymerElement = Polymer.LegacyElementMixin();
var PolymerElement = function() {};

/** On create callback. */
PolymerElement.prototype.created = function() {};
/** On ready callback. */
PolymerElement.prototype.ready = function() {};
/** On registered callback. */
PolymerElement.prototype.registered = function() {};
/** On attached to the DOM callback. */
PolymerElement.prototype.attached = function() {};
/** On detached from the DOM callback. */
PolymerElement.prototype.detached = function() {};

0 comments on commit 4e6a379

Please sign in to comment.