Tim van der Lippe
9dbc87284d
Update gen-closure-declarations to 0.5.0 ( #5360 )
...
* Update gen-closure-declarations to 0.5.0
This fixes the externs generation for our modules
* Generate closure types before publishing
* Actually remove closure-types.js from git
* Remove HTML Imports from webcomponents externs
* Add back externs/polymer-externs.js
2018-09-18 21:05:19 +01:00
Kevin Schaaf
438c8c40bc
Merge pull request #5310 from simonfuhrmann/master
...
Upstream externs changes for DomRepeatEvent
2018-08-15 10:20:53 -07:00
Alexander Marks
6847cf4791
Make Polymer gestures library safe for Closure property renaming (take 2). ( #5314 )
...
Make Polymer gestures library safe for Closure property renaming.
The issue here was that we were assuming that the method for a given
gesture would always match the string name of that gesture, e.g. that if
the gesture name was "mousedown" that we could call
gestureDefinition.mousedown. In actuality, gestureDefinition.mousedown
could be renamed by Closure, which would throw with "undefined is not a
function".
The fix is to move the GesturesRecognizer type into our externs, which
prevents those methods from being renamed.
2018-08-02 14:58:07 -07:00
Simon Fuhrmann
e3b9d4e6a3
Upstream externs changes for DomRepeatEvent
2018-07-30 11:06:33 -07:00
Alexander Marks
536030acfa
Generate typings for Polymer 3.
...
- Publishing (actually packing) will now generate the typings and fail
if they don't compile.
- Travis will now generate the typings and fail if they don't compile.
- Some minor tweaks to get typings compiling.
2018-07-26 18:28:22 -07:00
Alexander Marks
ac6011e0e4
Revert Promise<void> changes.
2018-07-26 18:06:52 -07:00
Alexander Marks
8b1e793470
Restore some externs.
2018-07-26 16:21:37 -07:00
Alexander Marks
3b8171922f
Upstream a bunch of g3 changes.
2018-07-26 16:15:32 -07:00
Daniel Freedman
4f0337a5da
Fix gulp 4 issues
2018-07-18 12:06:56 -07:00
Daniel Freedman
3c23d673ca
Closure extern update
2018-04-11 12:17:09 -07:00
Tim van der Lippe
8d97d1311e
Merge branch 'master' into rewrite-expression-parser
2018-03-31 15:52:33 +02:00
Peter Burns
5357d64aef
Update types.
2018-03-30 15:59:57 -07:00
Tim van der Lippe
211c223fb9
Update docs and types
2018-02-25 16:13:16 +01:00
Daniel Freedman
2d674e75b1
update types
2018-02-21 14:11:51 -08:00
Daniel Freedman
8f8135b2de
fix typings
2018-02-21 12:52:00 -08:00
Daniel Freedman
7e74e363ff
Ensure DisableUpgradeMixin extends PropertiesMixin
2018-02-21 12:45:18 -08:00
Steven Orvell
5bc45ce390
update types
2018-02-21 10:28:07 -08:00
Steven Orvell
5607a2d8c3
Lint and type fixes
2018-02-06 14:48:36 -08:00
Mike Samuel
b52ab81dff
Added Polymer.version to polymer-externs ( #5079 )
2018-01-31 12:31:18 -08:00
Steven Orvell
5521e43e69
update types
2018-01-30 15:19:58 -08:00
James Garbutt
589684a5a4
add void return type annotations ( #5000 )
...
* add void return type annotations
* define dom api prototype members as functions
* fix renderstatus optional parameters
* fix style-gatherer types
* fix templatize types
* fix event listener remove types
* use generics in mixinBehaviors
* update gen-typescript-declarations
* add memberof annotation to domapi methods
* add domapi types
* move dom methods to correct place
* use parameterless NodeList for the dom API
2018-01-09 15:10:12 -08:00
Alexander Marks
7b581de9a2
Address latest round of comments.
2017-12-18 16:47:20 -08:00
Tim van der Lippe
e872982269
Tighten more types for TypeScript and Closure ( #4998 )
2017-12-18 14:03:02 -08:00
Alexander Marks
f0e31f2d4f
Fix compilation errors.
2017-12-13 14:17:58 -08:00
Daniel Freedman
986fb3e9fd
re-add AsyncInterface definition, fix comment
2017-12-08 10:58:36 -08:00
Kevin Schaaf
40d47f24d1
Avoid _setPendingProperty warning due to types not understanding deduping mixin.
2017-12-08 10:55:33 -08:00
Kevin Schaaf
a12934c578
Fix most closure warnings.
2017-12-05 17:34:14 -08:00
Kevin Schaaf
b158e082d0
Merge with master
2017-12-05 15:49:07 -08:00
Steven Orvell
d3e1bae48a
Merge branch 'master' into basic-element
2017-11-29 16:49:07 -08:00
Daniel Freedman
15d8c6af41
Merge branch 'master' into 2.x-shady-unscoped-style
2017-11-17 17:33:16 -08:00
Steven Orvell
d331c673fc
Merge branch 'master' into basic-element
2017-11-10 17:04:15 -08:00
Daniel Freedman
cda62d5fd3
Implement type change in Polymer.ElementMixin
2017-11-02 15:01:05 -07:00
Peter Burns
4837e4a825
instance.$.foo should only give Elements
...
You need to be at least an `Element` to have an id attribute, and you need to have an id attribute to be in the `$` map.
2017-11-02 14:21:06 -07:00
Steven Orvell
1c5b731ffb
Update externs again.
2017-10-19 14:57:51 -07:00
Steven Orvell
8683b27c07
Update externs.
2017-10-19 14:53:04 -07:00
Daniel Freedman
6bf97eb6db
Merge branch 'master' into clean-up-externs
2017-10-16 11:00:36 -07:00
Daniel Freedman
e71b84a8b8
Address feedback
...
- Extend PropertyAccessors for greater flexibility
- Detect if `:dir` is used in order to activate runtime features
- Add to LegacyElement for 1.x compatibility
- clean up `ElementMixin._finalizeTemplate`
2017-10-12 11:17:19 -07:00
Daniel Freedman
1e5ea94221
Clean up closure externs
...
Generated closure externs substantially reduced in size with newer
generator
2017-10-09 12:42:16 -07:00
Daniel Freedman
2ef65aa62c
First draft of a :dir aware element mixin
...
Related to #4860
2017-10-05 15:59:59 -07:00
Daniel Freedman
5ae21a08c7
fix some formatting and closure linting
2017-09-25 15:57:42 -07:00
Alexander Marks
c3f31455e9
Move @externs before @license because Closure likes that.
2017-09-20 17:23:28 -07:00
Josh Soref
17678e1a5d
spelling: identify
2017-09-07 04:34:09 +00:00
Daniel Freedman
42fd830746
Merge pull request #4786 from beckysiegel/master
...
Update closure annotation for all paths
2017-08-11 14:51:36 -07:00
Daniel Freedman
f4a9e06e59
[ci skip] Add license headers to externs
2017-08-11 14:49:31 -07:00
Becky Siegel
42ce5a88db
Polymer.Path.get accepts both a string path or an Array path, so
...
functions that call this should allow for either as well. Already
changed for Polymer.prototype.push here:
https://github.com/Polymer/polymer/pull/4776
2017-08-11 14:24:46 -07:00
Daniel Freedman
a4591abcd3
Update closure compiler to support polymer pass v2
...
Looser typing for Polymer({}) to support polymer pass transform
2017-08-11 11:55:04 -07:00
Daniel Freedman
d937d5fe38
Fix compiling with Polymer({}) calls
...
Add types for instance properties of ElementMixin and LegacyElementMixin
2017-08-09 14:15:11 -07:00
Daniel Freedman
c20b657477
[ci skip] update externs more from #4776
2017-08-07 15:31:10 -07:00
Becky Siegel
eb170cbb11
Update closure annotation for Polymer.prototype.push
2017-08-06 21:48:32 -07:00
Daniel Freedman
5ab9032cf6
[ci skip] remove duplicate definition for __dataHost in externs
2017-08-01 11:39:00 -07:00