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

Code requires format twice in scenario with long union type in interface extends clause #52

Open
dsherret opened this issue Sep 7, 2020 · 0 comments · May be fixed by dprint/dprint#423 or #307
Labels
bug Something isn't working

Comments

@dsherret
Copy link
Member

dsherret commented Sep 7, 2020

Describe the bug

Deno version: 1.3.2

Input Code

export interface Preview extends Pick<BaseGuild, "id" | "name" | "icon" | "splash" | "discovery_splash" | "emojis" | "features" | "description"> {
  approximate_member_count: number;
  approximate_presence_count: number;
}

Actual Output

First this:

  export interface Preview
    extends
      Pick<
        BaseGuild,
        | "id"
        | "name"
        | "icon"
        | "splash"
        | "discovery_splash"
        | "emojis"
        | "features"
        | "description"
      > {
    approximate_member_count: number;
    approximate_presence_count: number;
  }

Then this the second time:

  export interface Preview extends
    Pick<
      BaseGuild,
      | "id"
      | "name"
      | "icon"
      | "splash"
      | "discovery_splash"
      | "emojis"
      | "features"
      | "description"
    > {
    approximate_member_count: number;
    approximate_presence_count: number;
  }

From https://discordapp.com/channels/684898665143206084/689420767620104201/751042524310667334

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant