* Refactor declaration emitter into declaration transformer * Slight cleanup from code review feedback * Incorporate fix for new test * Swaths of PR feedback * Merge public methods * Per-file output * Preserve input import ordering more often * Unify jsdoc comment start detection under more lenient rule * Move to per-file transformations to reduce the memory that msut be retained * Fix typo
26 lines
528 B
TypeScript
26 lines
528 B
TypeScript
//// [tests/cases/compiler/keepImportsInDts3.ts] ////
|
|
|
|
//// [test.ts]
|
|
export {};
|
|
//// [main.ts]
|
|
import "test"
|
|
|
|
//// [outputfile.js]
|
|
define("test", ["require", "exports"], function (require, exports) {
|
|
"use strict";
|
|
exports.__esModule = true;
|
|
});
|
|
define("app/main", ["require", "exports", "test"], function (require, exports) {
|
|
"use strict";
|
|
exports.__esModule = true;
|
|
});
|
|
|
|
|
|
//// [outputfile.d.ts]
|
|
declare module "test" {
|
|
export {};
|
|
}
|
|
declare module "app/main" {
|
|
import "test";
|
|
}
|