TypeScript/tests/cases/compiler/targetEs6DecoratorMetadataImportNotElided.ts
2018-07-31 13:53:28 -07:00

19 lines
426 B
TypeScript

// @module: es6
// @target: es5
// @emitDecoratorMetadata: true
// @experimentalDecorators: true
// @filename: deps.ts
export function Input(): any { }
export class TemplateRef { }
// @filename: index.ts
import { Input, TemplateRef } from './deps';
export class MyComponent {
_ref: TemplateRef;
@Input()
get ref() { return this._ref; }
set ref(value: TemplateRef) { this._ref = value; }
}