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(fmt): improve curried arrow functions #15251

Merged
merged 2 commits into from
Jul 20, 2022

Conversation

dsherret
Copy link
Member

Input:

const someFunc = (a: string, b: number) => (c: number, d: number, e: number) => (f: string, g: number) => {
};

Before:

const someFunc = (a: string, b: number) =>
  (c: number, d: number, e: number) =>
    (f: string, g: number) => {
    };

After (now):

const someFunc =
  (a: string, b: number) =>
  (c: number, d: number, e: number) =>
  (f: string, g: number) => {
  };

@dsherret dsherret added this to the 1.24 milestone Jul 20, 2022
@dsherret dsherret requested a review from bartlomieju July 20, 2022 00:11
@dsherret dsherret merged commit cee3246 into denoland:main Jul 20, 2022
@dsherret dsherret deleted the fix_fmt_currying_functions branch July 20, 2022 12:55
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.

3 participants