Skip to content

CodeAction: convert lambda expression declaration to function  #23299

Description

@Kingwl

TypeScript Version: 2.7.0-dev.201xxxxx

Code

consta=(arg: number)=>(<div>{arg}foo</div>)

Expected behavior:

functiona(arg: number){return(<div>{arg}foo</div>)}

Actual behavior:
none

btw: also convert function to lambda expression

Metadata

Metadata

Labels

Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureDomain: LS: Refactoringse.g. extract to constant or function, rename symbolSuggestionAn idea for TypeScript

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions