mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
//// [tests/cases/compiler/declFileAmbientExternalModuleWithSingleExportedModule.ts] ////
|
|
|
|
//// [declFileAmbientExternalModuleWithSingleExportedModule_0.ts]
|
|
declare module "SubModule" {
|
|
export namespace m {
|
|
export namespace m3 {
|
|
interface c {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
//// [declFileAmbientExternalModuleWithSingleExportedModule_1.ts]
|
|
///<reference path='declFileAmbientExternalModuleWithSingleExportedModule_0.ts' preserve="true" />
|
|
import SubModule = require('SubModule');
|
|
export var x: SubModule.m.m3.c;
|
|
|
|
|
|
|
|
//// [declFileAmbientExternalModuleWithSingleExportedModule_0.js]
|
|
"use strict";
|
|
//// [declFileAmbientExternalModuleWithSingleExportedModule_1.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.x = void 0;
|
|
|
|
|
|
//// [declFileAmbientExternalModuleWithSingleExportedModule_0.d.ts]
|
|
declare module "SubModule" {
|
|
namespace m {
|
|
namespace m3 {
|
|
interface c {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//// [declFileAmbientExternalModuleWithSingleExportedModule_1.d.ts]
|
|
/// <reference path="declFileAmbientExternalModuleWithSingleExportedModule_0.d.ts" preserve="true" />
|
|
import SubModule = require('SubModule');
|
|
export declare var x: SubModule.m.m3.c;
|