29 lines
540 B
JavaScript
29 lines
540 B
JavaScript
//// [interMixingModulesInterfaces0.ts]
|
|
module A {
|
|
|
|
export module B {
|
|
export function createB(): B {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
export interface B {
|
|
name: string;
|
|
value: number;
|
|
}
|
|
}
|
|
|
|
var x: A.B = A.B.createB();
|
|
|
|
//// [interMixingModulesInterfaces0.js]
|
|
var A;
|
|
(function (A) {
|
|
(function (B) {
|
|
function createB() {
|
|
return null;
|
|
}
|
|
B.createB = createB;
|
|
})(A.B || (A.B = {}));
|
|
var B = A.B;
|
|
})(A || (A = {}));
|
|
var x = A.B.createB();
|