~~ lineWidth: 40 ~~
== should format ==
type T = ()   =>    void;
type U = (param: string  )  =>   void;
type V = <  T>(param: string   ) => void;

[expect]
type T = () => void;
type U = (param: string) => void;
type V = <T>(param: string) => void;

== should format the return type as hanging when it's hanging ==
type Test = (param: string) => str | number;

[expect]
type Test = (param: string) => str
    | number;

== should format the return type on the same line when the rest of the header is hanging ==
type Test = (param: string, otherParamTest) => str | number;

[expect]
type Test = (param: string,
    otherParamTest) => str | number;

== should format the return type on a new line when it's hanging and the rest of the header is hanging ==
type Test = (param: string, otherParamTest) => str | number | other | other;

[expect]
type Test = (param: string,
    otherParamTest
) => str | number | other | other;
