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