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


!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== foo.d.ts (0 errors) ====
    declare module "foo" {
        export class Foo {
            constructor();
            method1(): any;
        }
    }
    
==== foo-ext.d.ts (0 errors) ====
    declare module "foo" {
        export interface Foo {
            method2(): any;
        }
    }
    
==== index.ts (0 errors) ====
    import * as foo from "foo";
    
    class Test {
        bar: foo.Foo;
        constructor() {
            this.bar = new foo.Foo();
        }
    }
    