Always emit Object type in decorator metadata for import type (#56594)

This commit is contained in:
Jan Kühle
2024-02-05 22:40:50 +01:00
committed by GitHub
parent 2514a64bdb
commit bcef7eba53
6 changed files with 137 additions and 7 deletions

View File

@@ -0,0 +1,15 @@
// @experimentalDecorators: true
// @emitDecoratorMetadata: true
// @filename: ./a.ts
import { List } from 'unknown-module';
export type MyList = List<number>;
// @filename: ./b.ts
import { type MyList } from './a';
declare var Decorator: any;
class Foo {
@Decorator myList?: MyList;
}