* Remove whitespace generation and rely on default printing Changes to printing: * Add newline after last empty SwitchCase * Add newlines around block comments if they are non-flow comments or contain newlines * Fix a few more fixtures
13 lines
216 B
JavaScript
13 lines
216 B
JavaScript
const bar1 = (x: number): string => {};
|
|
|
|
const bar2 = (x?) => {};
|
|
|
|
const bar3 = (x?: string) => {};
|
|
|
|
const bar4 = x => {};
|
|
|
|
const bar5 = (x): string => {};
|
|
|
|
const bar6 = (x: number) => {};
|
|
|
|
const bar7 = <T>(x) => {}; |