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

75 lines
2.0 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`union.js 1`] = `
interface RelayProps {
articles: Array<{
__id: string,
} | null> | null | void | 1,
}
interface RelayProps {
articles: Array<{
__id: string,
} | null> | null | void,
}
export function aPrettyLongFunction(aRatherLongParamName: string | null): string {}
export function aPrettyLongFunctionA(aRatherLongParameterName: {} | null): string[] {}
export function aPrettyLongFunctionB(aRatherLongParameterName: Function | null): string[] {}
export interface MyInterface {}
export function aPrettyLongFunctionC(aRatherLongParameterName: MyInterface | null): string[] {}
export type MyType = MyInterface
export function aPrettyLongFunctionD(aRatherLongParameterName: MyType | null): string[] {}
export function aShortFn(aShortParmName: MyType | null): string[] {}
export function aPrettyLongFunctionE(aRatherLongParameterName: Array<{
__id: string,
} | null> | null | void): string[] {}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
interface RelayProps {
articles:
| Array<{
__id: string
} | null>
| null
| void
| 1;
}
interface RelayProps {
articles: Array<{
__id: string
} | null> | null | void;
}
export function aPrettyLongFunction(
aRatherLongParamName: string | null
): string {}
export function aPrettyLongFunctionA(
aRatherLongParameterName: {} | null
): string[] {}
export function aPrettyLongFunctionB(
aRatherLongParameterName: Function | null
): string[] {}
export interface MyInterface {}
export function aPrettyLongFunctionC(
aRatherLongParameterName: MyInterface | null
): string[] {}
export type MyType = MyInterface;
export function aPrettyLongFunctionD(
aRatherLongParameterName: MyType | null
): string[] {}
export function aShortFn(aShortParmName: MyType | null): string[] {}
export function aPrettyLongFunctionE(
aRatherLongParameterName: Array<{
__id: string
} | null> | null | void
): string[] {}
`;