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

68 lines
1.7 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`comment.js 1`] = `
====================================options=====================================
parsers: ["flow", "babel"]
printWidth: 80
| printWidth
=====================================input======================================
type Foo = {
method(
arg: number, // I belong with baz
qux: string
) : void
}
=====================================output=====================================
type Foo = {
method(
arg: number, // I belong with baz
qux: string
): void
};
================================================================================
`;
exports[`method.js 1`] = `
====================================options=====================================
parsers: ["flow", "babel"]
printWidth: 80
| printWidth
=====================================input======================================
type T = { method: () => void };
type T = { method(): void };
declare class X { method(): void }
declare function f(): void;
var f: () => void;
declare class X {
static deserialize(): mixed,
static deserialize: () => mixed,
}
interface I {
static(): number;
}
=====================================output=====================================
type T = { method: () => void };
type T = { method(): void };
declare class X {
method(): void;
}
declare function f(): void;
var f: () => void;
declare class X {
static deserialize(): mixed;
static deserialize: () => mixed;
}
interface I {
static(): number;
}
================================================================================
`;