mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
32 lines
658 B
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 {};
|