// https://github.com/prettier/prettier/issues/4171 function y() { const fits = >fits(); const fitsObjLiteral = >{ a: "test" }; const fitsArrayLiteral = >["test", "test2"] const breakAfterCast = >someExistingConfigMap.mergeDeep(fallbackOpts); const stillTooLong = >someExistingConfigMap.mergeDeep(fallbackOptions); const stillTooLong2 = | undefined>someExistingConfigMap.mergeDeep(fallbackOptions); const stillTooLong3 = >someExistingConfigMap.mergeDeep(fallbackOptions.someMethodWithLongName(param1, param2)); const stillTooLong4 = | undefined>someExistingConfigMap.mergeDeep(fallbackOptions.someMethodWithLongName(param1, param2)); const testObjLiteral = >{ property1: "myPropertyVal" }; const testObjLiteral2 = >{ property1: "myPropertyVal" }; const testArrayLiteral = >["first", "second", "third"]; const testArrayLiteral2 = >["first", "second", "third"]; const insideFuncCall = myFunc(param1, >param2, param3) } // https://github.com/prettier/prettier/issues/4168 function x() { const fits = | undefined>(permissions)[type]; const fitsObjLiteral = | undefined>{ a: "test" }; const fitsArrayLiteral = | undefined>["t1", "t2"]; const breakAfterCast = | undefined>(permissions)[receiverType]; const stillTooLong = | undefined | number | string | boolean>(permissions)[receiverType]; const stillTooLong2 = | undefined | number | string | boolean | null | never>(permissions)[receiverType]; const stillTooLong3 = | undefined>(permissions.someMethodWithLongName(parameter1, parameter2))[receiverTypeLongName]; const stillTooLong4 = | undefined | number | string | boolean | null | never>(permissions.someMethodWithLongName(parameter1, parameter2))[receiverTypeLongName]; const testObjLiteral = | undefined>{ prop1: "myPropVal" }; const testObjLiteral2 = | undefined | number | string | boolean | null | never | object>{ prop1: "myPropVal" }; const testArrayLiteral = | undefined>["first", "second", "third"]; const testArrayLiteral2 = | undefined | number | string | boolean | null | never | object>["first", "second", "third"]; const insideFuncCall = myFunc(param1, | undefined>param2, param3) }