1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
=== tests/cases/compiler/interMixingModulesInterfaces0.ts ===
module A {
>A : typeof A
export module B {
>B : typeof B
export function createB(): B {
>createB : () => B
>B : B
return null;
>null : null
}
}
export interface B {
>B : B
name: string;
>name : string
value: number;
>value : number
}
}
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
|