=== tests/cases/compiler/interMixingModulesInterfaces1.ts === module A { >A : typeof A export interface B { >B : B name: string; >name : string value: number; >value : number } export module B { >B : typeof B export function createB(): B { >createB : () => B >B : B return null; >null : null } } } var x: A.B = A.B.createB(); >x : A.B >A : any >B : A.B >A.B.createB() : A.B >A.B.createB : () => A.B >A.B : typeof A.B >A : typeof A >B : typeof A.B >createB : () => A.B