mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
47 lines
1.1 KiB
Diff
47 lines
1.1 KiB
Diff
--- old.jsDeclarationsDefault(target=es2015).js
|
|
+++ new.jsDeclarationsDefault(target=es2015).js
|
|
@@= skipped -100, +100 lines =@@
|
|
|
|
|
|
//// [index1.d.ts]
|
|
-declare const _default: 12;
|
|
+declare const _default = 12;
|
|
export default _default;
|
|
//// [index2.d.ts]
|
|
export default function foo(): typeof foo;
|
|
-export function x(): typeof foo;
|
|
+export declare const x: typeof foo;
|
|
export { foo as bar };
|
|
//// [index3.d.ts]
|
|
export default class Foo {
|
|
a: Foo;
|
|
}
|
|
-export const X: typeof Foo;
|
|
+export declare const X: typeof Foo;
|
|
export { Foo as Bar };
|
|
//// [index4.d.ts]
|
|
-export default Bar;
|
|
+import Fab from "./index3";
|
|
declare class Bar extends Fab {
|
|
x: Bar;
|
|
}
|
|
-import Fab from "./index3";
|
|
+export default Bar;
|
|
//// [index5.d.ts]
|
|
-type _default = string | number;
|
|
-declare const _default: 12;
|
|
+declare const _default = 12;
|
|
export default _default;
|
|
+export type default = string | number;
|
|
+/**
|
|
+ * @typedef {string | number} default
|
|
+ */
|
|
//// [index6.d.ts]
|
|
-declare function func(): void;
|
|
-type func = string | number;
|
|
-export default func;
|
|
+export default function func(): void;
|
|
+export type default = string | number;
|
|
+/**
|
|
+ * @typedef {string | number} default
|
|
+ */
|