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.
==== varArgsOnConstructorTypes.ts (0 errors) ====
    export class A {
        constructor(ctor) { }
    }
    
    export class B extends A {
        private p1: number;
        private p2: string;
    
        constructor(element: any, url: string) {
           super(element);
            this.p1 = element;
            this.p2 = url;
        }
    }
    
    export interface I1 {
        register(inputClass: new(...params: any[]) => A);
        register(inputClass: { new (...params: any[]): A; }[]);
    }
    
    
    var reg: I1;
    reg.register(B);
    