prettier/tests/typescript_arrow/__snapshots__/jsfmt.spec.js.snap

38 lines
947 B
Plaintext
Raw Normal View History

2017-09-27 08:43:17 +03:00
// Jest Snapshot v1, https://goo.gl/fbAQLP
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,
() => {},
() => {}
)
);
app.get("/", (req, res): void => {
res.send("Hello world");
});
=====================================output=====================================
2017-09-27 08:43:17 +03:00
const bar = (...varargs: any[]) => {
console.log(varargs);
};
const foo = (x: string): void => bar(x, () => {}, () => {});
app.get("/", (req, res): void => {
res.send("Hello world");
});
================================================================================
2017-09-27 08:43:17 +03:00
`;