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

44 lines
940 B
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`comment.js - flow-verify 1`] = `
type Foo = {
method(
arg: number, // I belong with baz
qux: string
) : void
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
type Foo = {
method(
arg: number, // I belong with baz
qux: string
): void
};
`;
exports[`method.js - flow-verify 1`] = `
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,
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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;
}
`;