2017-09-27 08:43:17 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`arrow_regression.js 1`] = `
|
|
|
|
====================================options=====================================
|
|
|
|
parsers: ["typescript"]
|
|
|
|
printWidth: 80
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
2017-09-27 08:43:17 +03:00
|
|
|
const bar = (...varargs:any[]) => {
|
|
|
|
console.log(varargs);
|
|
|
|
};
|
|
|
|
|
|
|
|
const foo = (x:string):void => (
|
|
|
|
bar(
|
|
|
|
x,
|
|
|
|
() => {},
|
|
|
|
() => {}
|
|
|
|
)
|
|
|
|
);
|
2018-11-25 11:21:14 +03:00
|
|
|
|
2019-05-14 16:57:42 +03:00
|
|
|
app.get("/", (req, res): void => {
|
|
|
|
res.send("Hello world");
|
|
|
|
});
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
=====================================output=====================================
|
2017-09-27 08:43:17 +03:00
|
|
|
const bar = (...varargs: any[]) => {
|
|
|
|
console.log(varargs);
|
|
|
|
};
|
|
|
|
|
|
|
|
const foo = (x: string): void => bar(x, () => {}, () => {});
|
|
|
|
|
2019-05-14 16:57:42 +03:00
|
|
|
app.get("/", (req, res): void => {
|
|
|
|
res.send("Hello world");
|
|
|
|
});
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2017-09-27 08:43:17 +03:00
|
|
|
`;
|