parent
677b46df71
commit
12ba997207
|
@ -4024,7 +4024,9 @@ function printArgumentsList(path, options, print) {
|
|||
somePrintedArgumentsWillBreak ? breakParent : "",
|
||||
conditionalGroup(
|
||||
[
|
||||
!somePrintedArgumentsWillBreak
|
||||
!somePrintedArgumentsWillBreak &&
|
||||
!node.typeArguments &&
|
||||
!node.typeParameters
|
||||
? simpleConcat
|
||||
: ifBreak(allArgsBrokenOut(), simpleConcat),
|
||||
shouldGroupFirst
|
||||
|
|
|
@ -231,3 +231,23 @@ function MyComponent(props) {
|
|||
|
||||
================================================================================
|
||||
`;
|
||||
|
||||
exports[`type_args.js 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["flow", "typescript"]
|
||||
printWidth: 80
|
||||
| printWidth
|
||||
=====================================input======================================
|
||||
const response = something.$http.get<ThingamabobService.DetailsData>(
|
||||
\`api/foo.ashx/foo-details/\${myId}\`,
|
||||
{ cache: quux.httpCache, timeout }
|
||||
);
|
||||
|
||||
=====================================output=====================================
|
||||
const response = something.$http.get<ThingamabobService.DetailsData>(
|
||||
\`api/foo.ashx/foo-details/\${myId}\`,
|
||||
{ cache: quux.httpCache, timeout }
|
||||
);
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
const response = something.$http.get<ThingamabobService.DetailsData>(
|
||||
`api/foo.ashx/foo-details/${myId}`,
|
||||
{ cache: quux.httpCache, timeout }
|
||||
);
|
Loading…
Reference in New Issue