error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.


!!! error TS5107: Option 'moduleResolution=classic' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== m4.ts (0 errors) ====
    export class d {
    };
    export var x: d;
    export function foo() {
        return new d();
    }
    
==== m5.ts (0 errors) ====
    import m4 = require("m4"); // Emit used
    export function foo2() {
        return new m4.d();
    }
==== useModule.ts (0 errors) ====
    // Do not emit unused import
    import m5 = require("m5");
    export var d = m5.foo2();
    export var x = m5.foo2;
    
    export function n() {
        return m5.foo2();
    }