mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
38 lines
939 B
Diff
38 lines
939 B
Diff
--- old.jsDeclarationEmitDoesNotRenameImport.js
|
|
+++ new.jsDeclarationEmitDoesNotRenameImport.js
|
|
@@= skipped -33, +33 lines =@@
|
|
|
|
|
|
//// [Test.d.ts]
|
|
-export default Test;
|
|
/** @module test/Test */
|
|
declare class Test {
|
|
}
|
|
+export default Test;
|
|
//// [Test.d.ts]
|
|
-export default Test;
|
|
/** @module Test */
|
|
declare class Test {
|
|
}
|
|
+export default Test;
|
|
//// [index.d.ts]
|
|
-export default X;
|
|
+import Test from './test/Test.js';
|
|
export type Options = {
|
|
- test?: typeof import("./Test.js").default | undefined;
|
|
+ test?: typeof import("./Test.js").default;
|
|
};
|
|
/**
|
|
* @typedef {Object} Options
|
|
* @property {typeof import("./Test.js").default} [test]
|
|
*/
|
|
declare class X extends Test {
|
|
+ test: import("./Test.js").default | undefined;
|
|
/**
|
|
* @param {Options} options
|
|
*/
|
|
constructor(options: Options);
|
|
- test: import("./Test.js").default | undefined;
|
|
}
|
|
-import Test from './test/Test.js';
|
|
+export default X;
|