The following are the remaining TypeScript issues with the Polymer 2.0 core library. Missing APIs: - [x] `Polymer()` legacy registration function - [x] `Polymer.ArraySplice.calculateSplices` - [x] `Polymer.Async.animationFrame.run` - [ ] Dynamically "forwarded" APIs on `Polymer.DomApi` (https://github.com/Polymer/polymer/blob/master/lib/legacy/polymer.dom.html#L234). - [ ] `Polymer.dom.flush` (https://github.com/Polymer/polymer/blob/master/lib/legacy/polymer.dom.html#L330) - [ ] `Polymer.dom.addDebouncer` (https://github.com/Polymer/polymer/blob/master/lib/legacy/polymer.dom.html#L340) - [ ] All the getters from`EventApi` (https://github.com/Polymer/polymer/blob/master/lib/legacy/polymer.dom.html#L256). Things we shouldn't emit: - [x] polymer/lib/utils/templatize.d.ts(40,15): error TS2300: Duplicate identifier 'klass'. Missing types: - [x] polymer/lib/legacy/class.d.ts(79,24): error TS2304: Cannot find name 'PolymerInit'. - [x] polymer/lib/mixins/element-mixin.d.ts(74,13): error TS2304: Cannot find name - 'StampedTemplate'. - [x] polymer/lib/mixins/property-effects.d.ts(50,19): error TS2304: Cannot find name 'Polymer_PropertyEffects'. - [x] polymer/lib/mixins/property-effects.d.ts(59,23): error TS2304: Cannot find name 'TemplateInfo'. - [x] polymer/lib/utils/async.d.ts(14,38): error TS2304: Cannot find name 'AsyncInterface'. - [x] polymer/lib/utils/async.d.ts(23,29): error TS2304: Cannot find name 'IdleDeadline'. - [x] polymer/lib/utils/debounce.d.ts(14,28): error TS2304: Cannot find name 'AsyncModule'. - [x] polymer/lib/utils/gestures.d.ts(35,30): error TS2304: Cannot find name 'GestureRecognizer'. - [x] polymer/lib/utils/mixin.d.ts(11,33): error TS2304: Cannot find name 'T'. Other: - [x] Namespaces don't have descriptions. - [x] Handle visibility. Exclude private things entirely? - [x] Don't reference Shady CSS typings, because we aren't generating any (at least for now). - [x] `Polymer.Element` does not inherit `PropertyEffects` mixin, so `set()` etc. are missing. - [x] Respect `@appliesMixin` annotation. - [x] Some things have a `@summary` annotation but no main description (e.g. the `Polymer.ArraySplice` namespace). What do we do with `@summary` vs description? - [x] Output to `types` directory, if that's what we decide. - [x] Many Polymer APIs are missing `!`s on their @params which they should have (e.g. `calculateSplices`), so they come out as `|null`.
The following are the remaining TypeScript issues with the Polymer 2.0 core library.
Missing APIs:
Polymer()legacy registration functionPolymer.ArraySplice.calculateSplicesPolymer.Async.animationFrame.runPolymer.DomApi(https://github.com/Polymer/polymer/blob/master/lib/legacy/polymer.dom.html#L234).Polymer.dom.flush(https://github.com/Polymer/polymer/blob/master/lib/legacy/polymer.dom.html#L330)Polymer.dom.addDebouncer(https://github.com/Polymer/polymer/blob/master/lib/legacy/polymer.dom.html#L340)EventApi(https://github.com/Polymer/polymer/blob/master/lib/legacy/polymer.dom.html#L256).Things we shouldn't emit:
Missing types:
'StampedTemplate'.
Other:
Polymer.Elementdoes not inheritPropertyEffectsmixin, soset()etc. are missing.@appliesMixinannotation.@summaryannotation but no main description (e.g. thePolymer.ArraySplicenamespace). What do we do with@summaryvs description?typesdirectory, if that's what we decide.!s on their @params which they should have (e.g.calculateSplices), so they come out as|null.