Files
tsgo/testdata/baselines/reference/submoduleAccepted/conformance/jsDeclarationsReexportedCjsAlias(target=es2015).js.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;