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

[refmt] Extra space before colon of return type on function definition #1628

Closed
kyldvs opened this issue Nov 11, 2017 · 0 comments · Fixed by #1966
Closed

[refmt] Extra space before colon of return type on function definition #1628

kyldvs opened this issue Nov 11, 2017 · 0 comments · Fixed by #1966

Comments

@kyldvs
Copy link

kyldvs commented Nov 11, 2017

Input:

let f = (x: int): int => x;

Desired output:

let f = (x: int): int => x;

Actual output:

let f = (x: int) : int => x;

Prettier example: https://goo.gl/SuGxvv

@chenglou chenglou mentioned this issue Nov 22, 2017
16 tasks
chenglou pushed a commit that referenced this issue May 28, 2018
…ion (#1966)

* Remove extra space before return type declaration in function definition

fixes #1628

* remove indent setting, not needed
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 a pull request may close this issue.

1 participant