index.ts(9,23): error TS1272: A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled.
index.ts(15,8): error TS1272: A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled.
index.ts(24,28): error TS1272: A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled.


==== type1.ts (0 errors) ====
    interface T1 {}
    export type { T1 }
    
==== type2.ts (0 errors) ====
    export interface T2 {}
    
==== class3.ts (0 errors) ====
    export class C3 {}
    
==== index.ts (3 errors) ====
    import { T1 } from "./type1";
    import * as t1 from "./type1";
    import type { T2 } from "./type2";
    import { C3 } from "./class3";
    declare var EventListener: any;
    
    class HelloWorld {
      @EventListener('1')
      handleEvent1(event: T1) {} // Error
                          ~~
!!! error TS1272: A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled.
!!! related TS1376 index.ts:1:10: 'T1' was imported here.
      
      @EventListener('2')
      handleEvent2(event: T2) {} // Ok
    
      @EventListener('1')
      p1!: T1; // Error
           ~~
!!! error TS1272: A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled.
!!! related TS1376 index.ts:1:10: 'T1' was imported here.
    
      @EventListener('1')
      p1_ns!: t1.T1; // Ok
    
      @EventListener('2')
      p2!: T2; // Ok
    
      @EventListener('3')
      handleEvent3(event: C3): T1 { return undefined! } // Ok, Error
                               ~~
!!! error TS1272: A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled.
!!! related TS1376 index.ts:1:10: 'T1' was imported here.
    }
    