This package has been deprecated

Author message:

WARNING: This project has been merged into babel-plugin-angular2-annotations.

babel-plugin-angular2-type-annotation

0.2.0 • Public • Published

build status npm version npm downloads

babel-plugin-angular2-type-annotation

An experimental babel transformer plugin for Angular 2 type annotation.

Example

Before:

class HelloComponent {
  constructor(@Parent() foo: Foo, bar: Bar) {
  }
}

After:

class HelloComponent {
  constructor(foo: Foo, bar: Bar) {
  }
}
Object.defineProperty(HelloComponent, 'parameters', { get: function () {
  return [[Foo, new Parent()], [Bar]];
}});

See babel-angular2-app for more complete example.

Package Sidebar

Install

npm i babel-plugin-angular2-type-annotation

Weekly Downloads

1

Version

0.2.0

License

ISC

Last publish

Collaborators

  • shuhei