mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
40 lines
685 B
TypeScript
40 lines
685 B
TypeScript
//// [tests/cases/compiler/declFileModuleAssignmentInObjectLiteralProperty.ts] ////
|
|
|
|
//// [declFileModuleAssignmentInObjectLiteralProperty.ts]
|
|
namespace m1 {
|
|
export class c {
|
|
}
|
|
}
|
|
var d = {
|
|
m1: { m: m1 },
|
|
m2: { c: m1.c },
|
|
};
|
|
|
|
//// [declFileModuleAssignmentInObjectLiteralProperty.js]
|
|
"use strict";
|
|
var m1;
|
|
(function (m1) {
|
|
class c {
|
|
}
|
|
m1.c = c;
|
|
})(m1 || (m1 = {}));
|
|
var d = {
|
|
m1: { m: m1 },
|
|
m2: { c: m1.c },
|
|
};
|
|
|
|
|
|
//// [declFileModuleAssignmentInObjectLiteralProperty.d.ts]
|
|
declare namespace m1 {
|
|
class c {
|
|
}
|
|
}
|
|
declare var d: {
|
|
m1: {
|
|
m: typeof m1;
|
|
};
|
|
m2: {
|
|
c: typeof m1.c;
|
|
};
|
|
};
|