Skip to content

Polymer 2.0 issues #892

@aomarks

Description

@aomarks

The following are the remaining TypeScript issues with the Polymer 2.0 core library.

Missing APIs:

Things we shouldn't emit:

  • polymer/lib/utils/templatize.d.ts(40,15): error TS2300: Duplicate identifier 'klass'.

Missing types:

  • polymer/lib/legacy/class.d.ts(79,24): error TS2304: Cannot find name 'PolymerInit'.
  • polymer/lib/mixins/element-mixin.d.ts(74,13): error TS2304: Cannot find name -
    'StampedTemplate'.
  • polymer/lib/mixins/property-effects.d.ts(50,19): error TS2304: Cannot find name 'Polymer_PropertyEffects'.
  • polymer/lib/mixins/property-effects.d.ts(59,23): error TS2304: Cannot find name 'TemplateInfo'.
  • polymer/lib/utils/async.d.ts(14,38): error TS2304: Cannot find name 'AsyncInterface'.
  • polymer/lib/utils/async.d.ts(23,29): error TS2304: Cannot find name 'IdleDeadline'.
  • polymer/lib/utils/debounce.d.ts(14,28): error TS2304: Cannot find name 'AsyncModule'.
  • polymer/lib/utils/gestures.d.ts(35,30): error TS2304: Cannot find name 'GestureRecognizer'.
  • polymer/lib/utils/mixin.d.ts(11,33): error TS2304: Cannot find name 'T'.

Other:

  • Namespaces don't have descriptions.
  • Handle visibility. Exclude private things entirely?
  • Don't reference Shady CSS typings, because we aren't generating any (at least for now).
  • Polymer.Element does not inherit PropertyEffects mixin, so set() etc. are missing.
  • Respect @appliesMixin annotation.
  • Some things have a @summary annotation but no main description (e.g. the Polymer.ArraySplice namespace). What do we do with @summary vs description?
  • Output to types directory, if that's what we decide.
  • Many Polymer APIs are missing !s on their @params which they should have (e.g. calculateSplices), so they come out as |null.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions