importTypeAmbient.ts(34,5): error TS2564: Property 'item' has no initializer and is not definitely assigned in the constructor.


==== importTypeAmbient.ts (1 errors) ====
    declare module "foo" {
        interface Point {
            x: number;
            y: number;
        }
        export = Point;
    }
    const x: import("foo") = { x: 0, y: 0 };
    
    declare module "foo2" {
        namespace Bar {
            interface I {
                a: string;
                b: number;
            }
        }
    
        namespace Baz {
            interface J {
                a: number;
                b: string;
            }
        }
    
        class Bar {
            item: Bar.I;
            constructor(input: Baz.J);
        }
    }
    
    let y: import("foo2").Bar.I = { a: "", b: 0 };
    
    class Bar2 {
        item: {a: string, b: number, c: object};
        ~~~~
!!! error TS2564: Property 'item' has no initializer and is not definitely assigned in the constructor.
        constructor(input?: any) {}
    }
    
    let shim: typeof import("foo2") = {
        Bar: Bar2
    };
    