Files
tsgo/testdata/baselines/reference/submoduleAccepted/compiler/destructuredDeclarationEmit.js.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 };