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

36 lines
957 B
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`internal_slot.js 1`] = `
====================================options=====================================
parsers: ["flow", "babel"]
printWidth: 80
| printWidth
=====================================input======================================
declare class C { static [[foo]]: T }
declare class C { [[foo]]: T }
interface T { [[foo]]: X }
interface T { [[foo]](): X }
type T = { [[foo]]: X }
type T = { [[foo]](): X }
type T = { [[foo]]?: X }
=====================================output=====================================
declare class C {
static [[foo]]: T;
}
declare class C {
[[foo]]: T;
}
interface T {
[[foo]]: X;
}
interface T {
[[foo]](): X;
}
type T = { [[foo]]: X };
type T = { [[foo]](): X };
type T = { [[foo]]?: X };
================================================================================
`;