mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-25 05:29:07 -05:00
Always emit Object type in decorator metadata for import type (#56594)
This commit is contained in:
15
tests/cases/compiler/decoratorMetadataTypeOnlyImport.ts
Normal file
15
tests/cases/compiler/decoratorMetadataTypeOnlyImport.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user