~~ parameters.preferHanging: always, lineWidth: 40 ~~
== should format the return type on the same line when the rest of the header is hanging ==
interface T {
    method(param: string, otherTest: string): test | ing;
}

[expect]
interface T {
    method(param: string,
        otherTest: string): test | ing;
}

== should format the return type on a new line when it's hanging and the rest of the header is hanging ==
interface T {
    method(param: string, otherTest: string): test | other | other;
}

[expect]
interface T {
    method(param: string,
        otherTest: string
    ): test | other | other;
}
