Closed
Description
Bug Report
π Search Terms
declaration emit, object pattern, binding pattern, destructuring
π Version & Regression Information
- This is the behavior in every version I tried
β― Playground Link
Playground link with relevant code
π» Code
function getFoo() {
return { foo: { test: 42 } }
}
const { foo } = getFoo()
// Exported type alias 'AliasType' has or is using private name 'foo'. (4081)
export type AliasType = typeof foo
π Actual behavior
.d.ts
can't be emitted
π Expected behavior
.d.ts
should be emitted by adding a visible alias statement
Metadata
Metadata
Assignees
Labels
No labels