Skip to content

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

Open
dprint/dprint
#423

Description

@dsherret

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions