mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
37 lines
811 B
Diff
37 lines
811 B
Diff
--- old.jsDeclarationsReexportedCjsAlias(target=es2015).js
|
|
+++ new.jsDeclarationsReexportedCjsAlias(target=es2015).js
|
|
@@= skipped -52, +52 lines =@@
|
|
|
|
|
|
//// [lib.d.ts]
|
|
+declare const _exports: {
|
|
+ bar: typeof bar;
|
|
+ SomeClass: typeof SomeClass;
|
|
+};
|
|
+export = _exports;
|
|
/**
|
|
* @param {string} a
|
|
*/
|
|
-export function bar(a: string): string;
|
|
-export class SomeClass {
|
|
+declare function bar(a: string): string;
|
|
+declare class SomeClass {
|
|
a(): number;
|
|
}
|
|
//// [main.d.ts]
|
|
-import { SomeClass } from "./lib";
|
|
-import { SomeClass as Another } from "./lib";
|
|
-export { SomeClass, Another };
|
|
+declare const _exports: {
|
|
+ SomeClass: {
|
|
+ new (): {
|
|
+ a(): number;
|
|
+ };
|
|
+ };
|
|
+ Another: {
|
|
+ new (): {
|
|
+ a(): number;
|
|
+ };
|
|
+ };
|
|
+};
|
|
+export = _exports;
|