mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
34 lines
768 B
Diff
34 lines
768 B
Diff
--- old.jsDeclarationsDefaultsErr(target=es2015).js
|
|
+++ new.jsDeclarationsDefaultsErr(target=es2015).js
|
|
@@= skipped -64, +64 lines =@@
|
|
|
|
|
|
//// [index1.d.ts]
|
|
-export type Cls = string | number;
|
|
-export default Cls;
|
|
declare class Cls {
|
|
- static y: string;
|
|
x: number;
|
|
+ static y: string;
|
|
}
|
|
+export default Cls;
|
|
+export type default = string | number;
|
|
+/**
|
|
+ * @typedef {string | number} default
|
|
+ */
|
|
//// [index2.d.ts]
|
|
export default class C {
|
|
}
|
|
+export type default = string | number;
|
|
+/**
|
|
+ * @typedef {string | number} default
|
|
+ */
|
|
//// [index3.d.ts]
|
|
-export type _default = string | number;
|
|
+declare const x = 12;
|
|
export { x as default };
|
|
-declare const x: 12;
|
|
+export type default = string | number;
|
|
+/**
|
|
+ * @typedef {string | number} default
|
|
+ */
|