18 lines
369 B
TypeScript
18 lines
369 B
TypeScript
|
// @experimentalDecorators: true
|
||
|
// @emitDecoratorMetadata: true
|
||
|
// @target: es5
|
||
|
// @filename: Class1.ts
|
||
|
export class Class1 {
|
||
|
}
|
||
|
// @filename: Class2.ts
|
||
|
import { Class1 } from './Class1';
|
||
|
|
||
|
function decorate(target: any, propertyKey: string) {
|
||
|
}
|
||
|
|
||
|
export class Class2 {
|
||
|
@decorate
|
||
|
get prop(): Class1 | undefined {
|
||
|
return undefined;
|
||
|
}
|
||
|
}
|