Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle async generic arrow functions #20

Merged
merged 1 commit into from
Oct 31, 2024
Merged

Conversation

acutmore
Copy link
Collaborator

Issue number of the reported bug or feature request: #19

Describe your changes
This updates the transform to detect async arrow functions that have type parameters which span over multiple lines. When this is detected the ( at the start of the functions parameters is moved to the start of the type parameters. Avoiding a new line character to appear directly after the async keyword.

Testing performed
A new fixture has been added that covers the issue being addresses.

mkubilayk
mkubilayk previously approved these changes Oct 31, 2024
Copy link
Contributor

@mkubilayk mkubilayk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - need to reformat index.ts though.

closes #19

Signed-off-by: Ashley Claymore <aclaymore@bloomberg.net>
@acutmore acutmore merged commit 49dd1dc into main Oct 31, 2024
2 checks passed
@acutmore acutmore deleted the async-generic-arrow branch October 31, 2024 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants