mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
45 lines
1.1 KiB
Diff
45 lines
1.1 KiB
Diff
--- old.declarationEmitDefaultExportWithStaticAssignment.js
|
|
+++ new.declarationEmitDefaultExportWithStaticAssignment.js
|
|
@@= skipped -81, +81 lines =@@
|
|
export declare class Foo {
|
|
}
|
|
//// [index1.d.ts]
|
|
+import { Foo } from './foo';
|
|
declare function Example(): void;
|
|
+export default Example;
|
|
declare namespace Example {
|
|
- var Foo: typeof import("./foo").Foo;
|
|
+ export { Foo };
|
|
}
|
|
-export default Example;
|
|
//// [index2.d.ts]
|
|
import { Foo } from './foo';
|
|
export { Foo };
|
|
declare function Example(): void;
|
|
+export default Example;
|
|
declare namespace Example {
|
|
- var Foo: typeof import("./foo").Foo;
|
|
+ export { Foo };
|
|
}
|
|
-export default Example;
|
|
//// [index3.d.ts]
|
|
export declare class Bar {
|
|
}
|
|
declare function Example(): void;
|
|
+export default Example;
|
|
declare namespace Example {
|
|
- var Bar: typeof import("./index3").Bar;
|
|
+ export { Bar };
|
|
}
|
|
-export default Example;
|
|
//// [index4.d.ts]
|
|
+declare function A(): void;
|
|
+declare function B(): void;
|
|
export declare function C(): any;
|
|
export declare namespace C {
|
|
- var A: () => void;
|
|
- var B: () => void;
|
|
+ export { A };
|
|
+ export { B };
|
|
}
|
|
+export {};
|