17 lines
No EOL
347 B
TypeScript
17 lines
No EOL
347 B
TypeScript
// @experimentalDecorators: true
|
|
// @emitDecoratorMetadata: true
|
|
// @target: es5
|
|
// @module: commonjs
|
|
// @filename: service.ts
|
|
export default class Service {
|
|
}
|
|
// @filename: component.ts
|
|
import Service from "./service";
|
|
|
|
declare var decorator: any;
|
|
|
|
@decorator
|
|
class MyComponent {
|
|
constructor(public Service: Service) {
|
|
}
|
|
} |