Skip to content

Regression in v3 #14808

@fisker

Description

@fisker

Prettier pr-14803
Playground link

--parser typescript

Input:

function makeChainWalker<
  ArgT extends {
    options: ValidatedOptions;
    dirname: string;
    filepath?: string;
  },
>() {}

Output:

function makeChainWalker<
  ArgT extends
    {
      options: ValidatedOptions;
      dirname: string;
      filepath?: string;
    },
>() {}

Expected behavior:

(V2 output should be preferred)

function makeChainWalker<
  ArgT extends {
    options: ValidatedOptions;
    dirname: string;
    filepath?: string;
  }
>() {}

Maybe the same problem as #14809

https://github.com/babel/babel/pull/15617/files#r1187671092

Metadata

Metadata

Assignees

Labels

lang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions