Skip to content

Parameters in function type has trailing blank line in this scenario #382

@dsherret

Description

@dsherret

Describe the bug

Deno version: 1.23.0

Input Code

type TestingTestTesttttttt<T extends TestingTestingtestingTestingggg> =
    T extends Testing ? (
      ...args: Test<T["parameters"]>
    ) => Other<
      Test,
      Test
    >
      : never;

Expected Output

Type args look weird, but they were already like that because the user placed them on a different line.

type TestingTestTesttttttt<T extends TestingTestingtestingTestingggg> =
    T extends Testing ? (
      ...args: Test<T["parameters"]>
    ) => Other<
      Test,
      Test
    >
      : never;

Actual Output

type TestingTestTesttttttt<T extends TestingTestingtestingTestingggg> =
  T extends Testing ? (
      ...args: Test<T["parameters"]>

    ) => Other<
      Test,
      Test
    >
    : never;

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