Skip to content

Bad exports naming for Directive/Component #2356

@alexeagle

Description

@alexeagle

the top-level 'angular2/angular2' module re-exports Component as ComponentAnnotation. The actual Component class extends Directive. However, we re-export class Directive as DirectiveAnnotation, and the re-exported Directive is just a var declaration. This breaks the angular2.d.ts since it ends up with a Component extends Directive type, where Directive is not a class.

Current workaround is to export the Directive annotation into the .d.ts, but this breaks the application because only decorators should be exposed to JS application.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions