Input:
interface ScreenObject {
// I make things weird.
at(point: Point): Screen | undefined;
}
Output:
interface ScreenObject {
// I make things weird.
at(
point: Point
): Screen | undefined;
}
Expected:
No change from input.
Problem seems to go away if e.g. a regular property appears before the function, like this:
interface ScreenObject {
// I make things weird.
prop: string;
at(point: Point): Screen | undefined;
}
Reproduction link can be found here.
Input:
Output:
Expected:
No change from input.
Problem seems to go away if e.g. a regular property appears before the function, like this:
Reproduction link can be found here.