~~ lineWidth: 40 ~~ == should format == type T = [ string , number ]; [expect] type T = [string, number]; == should split on multiple lines when first is on different line == type T = [ string, // test number, other ]; [expect] type T = [ string, // test number, other, ]; == should go multi-line when exceeding line width == type T = [string, number, other, otherTest, other]; [expect] type T = [ string, number, other, otherTest, other, ]; == should not split up a tuple type midway through == type T = [string, number, string | number | other]; [expect] type T = [ string, number, string | number | other, ]; == should not be on separate line within a type argument when multi-line == type Test = Array<[ string, number, string, ]>; [expect] type Test = Array<[ string, number, string, ]>; == should support rest elements in tuples == type Test = [...string, ...number]; [expect] type Test = [...string, ...number];