index.js(7,1): error TS2309: An export assignment cannot be used in a module with other exported elements.
index.js(12,16): error TS2339: Property 'Another' does not exist on type 'typeof Q'.


==== index.js (2 errors) ====
    class A {
        member = new Q();
    }
    class Q {
        x = 42;
    }
    module.exports = class Q {
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
        constructor() {
    ~~~~~~~~~~~~~~~~~~~
            this.x = new A();
    ~~~~~~~~~~~~~~~~~~~~~~~~~
        }
    ~~~~~
    }
    ~
!!! error TS2309: An export assignment cannot be used in a module with other exported elements.
    module.exports.Another = Q;
                   ~~~~~~~
!!! error TS2339: Property 'Another' does not exist on type 'typeof Q'.
    