mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
30 lines
766 B
Diff
30 lines
766 B
Diff
--- old.destructuredDeclarationEmit.js
|
|
+++ new.destructuredDeclarationEmit.js
|
|
@@= skipped -70, +70 lines =@@
|
|
//// [index.d.ts]
|
|
import { foo, arr } from './foo';
|
|
export { foo, arr };
|
|
-declare const baz: string, ibaz: string;
|
|
+declare const { bar: baz, bat, bam: { bork: { bar: ibar, baz: ibaz } } }: {
|
|
+ bar: string;
|
|
+ bat: string;
|
|
+ bam: {
|
|
+ bork: {
|
|
+ bar: string;
|
|
+ baz: string;
|
|
+ };
|
|
+ };
|
|
+};
|
|
export { baz, ibaz };
|
|
-declare const one: 1, bee: "b", sec: "sec";
|
|
+declare const [, one, , [, bee, , [, { sec }]]]: [0, 1, 2, ["a", "b", "c", [{
|
|
+ def: 'def';
|
|
+}, {
|
|
+ sec: 'sec';
|
|
+}]]];
|
|
export { one, bee, sec };
|
|
-declare const foo2: string;
|
|
+declare const { foo: foo2 }: {
|
|
+ foo: string;
|
|
+};
|
|
export { foo2 };
|