Skip to content

Allow Destructing in .d.ts #2421

Description

@yuit

Currently following code

function foo([a, b, c] : [ string, string, string]) { }

get emitted as

declare function foo(_0: [string, string, string]): void;

in .d.ts

This emit isn't helpful when consuming the .d.ts in signature help. It will be more desirable to emit as following

declare function foo([a, b, c] : [string, string, string]): void;

Allow .d.ts to have destructuring

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions