Files
tsgo/testdata/baselines/reference/submoduleAccepted/compiler/declarationEmitNonExportedBindingPattern.js.diff

32 lines
658 B
Diff

--- old.declarationEmitNonExportedBindingPattern.js
+++ new.declarationEmitNonExportedBindingPattern.js
@@= skipped -36, +36 lines =@@
//// [test.d.ts]
-declare const foo: {
- test: number;
+declare const { foo }: {
+ foo: {
+ test: number;
+ };
};
export type AliasType = typeof foo;
-declare const renamed: {
- test: number;
+declare const { foo: renamed }: {
+ foo: {
+ test: number;
+ };
};
export type AliasType2 = typeof renamed;
-declare const c: string;
+declare const { a: { b: { c } } }: {
+ a: {
+ b: {
+ c: string;
+ };
+ };
+};
export type AliasType3 = typeof c;
export {};