24 lines
496 B
TypeScript
24 lines
496 B
TypeScript
//// [tests/cases/compiler/keepImportsInDts4.ts] ////
|
|
|
|
//// [test.ts]
|
|
|
|
export {};
|
|
//// [main.ts]
|
|
import "./folder/test"
|
|
|
|
//// [outputfile.js]
|
|
define("folder/test", ["require", "exports"], function (require, exports) {
|
|
"use strict";
|
|
});
|
|
define("main", ["require", "exports", "folder/test"], function (require, exports) {
|
|
"use strict";
|
|
});
|
|
|
|
|
|
//// [outputfile.d.ts]
|
|
declare module "folder/test" {
|
|
export { };
|
|
}
|
|
declare module "main" {
|
|
import "folder/test";
|
|
}
|